Skip to content

Commit 6b08857

Browse files
alan-agius4bbogdanov
authored andcommitted
docs: remove --prod as it's no longer needed
Closes angular#12290
1 parent 500846a commit 6b08857

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/documentation/stories/create-library.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If this happens just rebuild your library.
6262
To publish your library follow these steps:
6363

6464
```
65-
ng build my-lib --prod
65+
ng build my-lib
6666
cd dist/my-lib
6767
npm publish
6868
```
@@ -71,9 +71,6 @@ If you've never published a package in npm before, you will need to create a use
7171
You can read more about publishing on npm here:
7272
https://docs.npmjs.com/getting-started/publishing-npm-packages
7373

74-
The `--prod` flag should be used when building to publish because it will completely clean the build
75-
directory for the library beforehand, removing old code leftover code from previous versions.
76-
7774

7875
## Why do I need to build the library everytime I make changes?
7976

0 commit comments

Comments
 (0)