8000 refactor(build): consolidate build options by filipesilva · Pull Request #4105 · angular/angular-cli · GitHub
[go: up one dir, main page]

Skip to content

refactor(build): consolidate build options #4105

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 7 commits into from
Jan 24, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
correct build and serve options
  • Loading branch information
filipesilva committed Jan 24, 2017
< 8000 batch-deferred-content class="d-inline-block" data-url="/commits/badges">
commit 62f8f98ca2b7a147a1e2baadb82deb528be10241
18 changes: 13 additions & 5 deletions docs/documentation/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ All builds make use of bundling, and using the `--prod` flag in `ng build --pro
or `ng serve --prod` will also make use of uglifying and tree-shaking functionality.

## Options
`--watch` (`-w`) flag to run builds when files change

`--target` (`-t`) define the build target

`--environment` (`-e`) defines the build environment
Expand All @@ -75,14 +77,20 @@ or `ng serve --prod` will also make use of uglifying and tree-shaking functional

`--output-path` (`-po`) path where output will be placed

`--output-hashing` define the output filename cache-busting hashing mode
`--aot` flag whether to build using Ahead of Time compilation

`--watch` (`-w`) flag to run builds when files change
`--sourcemap` (`-sm`) output sourcemaps

`--surpress-sizes` flag to suppress sizes from build output
`--vendor-chunk` (`-vb`) use a separate bundle containing only vendor libraries

`--base-href` (`-bh`) base url for the application being built

`--aot` flag whether to build using Ahead of Time compilation
`--deploy-url` (`-d`) url where files will be deployed

`--verbose` (`-v`) adds more details to output logging

`--progress` (`-pr`) log progress to the console while building

`--extract-css` extract css from global styles onto css files instead of js ones
`--extract-css` (`-ec`) extract css from global styles onto css files instead of js ones

`--output-hashing` define the output filename cache-busting hashing mode
42 changes: 31 additions & 11 deletions docs/documentation/serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
## Options
`--port` (`-p`) port to serve the application on

`--host` (`-H`)
`--host` (`-H`) host where to listen

`--proxy-config` (`-pc`)

`--watcher` (`-w`) provide a new watcher
`--proxy-config` (`-pc`) proxy configuration file

`--live-reload` (`-lr`) flag to turn off live reloading

Expand All @@ -24,18 +22,40 @@

`--live-reload-live-css` flag to live reload CSS

`--target` (`-t`, `-dev`, `-prod`) target environment

`--environment` (`-e`) build environment

`--ssl` flag to turn on SSL

`--ssl-key` path to the SSL key

`--ssl-cert` path to the SSL cert

`--aot` flag to turn on Ahead of Time compilation

`--open` (`-o`) opens the app in the default browser

`--extract-css` extract css from global styles onto css files instead of js ones
`--hmr` use hot module reload

`--target` (`-t`) define the build target

`--environment` (`-e`) defines the build environment

`--prod` flag to set build target and environment to production

`--dev` flag to set build target and environment to development

`--output-path` (`-po`) path where output will be placed

`--aot` flag whether to build using Ahead of Time compilation

`--sourcemap` (`-sm`) output sourcemaps

`--vendor-chunk` (`-vb`) use a separate bundle containing only vendor libraries

`--base-href` (`-bh`) base url for the application being built

`--deploy-url` (`-d`) url where files will be deployed

`--verbose` (`-v`) adds more details to output logging

`--progress` (`-pr`) log progress to the console while building

`--extract-css` (`-ec`) extract css from global styles onto css files instead of js ones

`--output-hashing` define the output filename cache-busting hashing mode
< 3845 /copilot-diff-entry>
0