Skip to content

docs: remove --prod as it's no longer needed #12293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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