@ngx-webpack/cli
v0.0.12
Published
Customizable Webpack config runner like Angular CLI
Downloads
21
Maintainers
Readme
@ngx-webpack/cli
Installation
npm install @ngx-webpack/cli --save-dev
Usage
Add the following scripts to package.json
(postinstall
is only needed when you use Webpack dlls).
{
"scripts": {
"postinstall": "ngx-install",
"build": "ngx-build",
"deploy": "ngx-deploy",
"lint": "ngx-lint",
"start": "ngx-start",
"test": "ngx-test",
"test-watch": "ngx-test --watch"
}
}
Create your configuration file named ngx-wepack.json
.
{
"port": 4000,
"aot": true,
"styleFormat": "sass",
"templateFormat": "pug",
"useDlls": true,
"liveReload": true,
"indexHtml": true,
"vendors": [
"@angular/common",
"@angular/core",
"@angular/platform-browser",
"@angular/http",
"@angular/forms",
"@angular/router"
]
}
The available configurations and their desriptions are available in the
readme of @ngx-webpack/core
.