Skip to content

Commit

Permalink
docs: remove --prod as it's no longer needed
Browse files Browse the repository at this point in the history
Closes #12290
  • Loading branch information
alan-agius4 authored and hansl committed Sep 18, 2018
1 parent fce686d commit 0efd002
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/documentation/stories/create-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If this happens just rebuild your library.
To publish your library follow these steps:

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

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


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

Expand Down

0 comments on commit 0efd002

Please sign in to comment.