@ngx-webpack/cli

0.0.12 • Public • Published

@ngx-webpack/cli

Dependency Status devDependency Status

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.

Package Sidebar

Install

npm i @ngx-webpack/cli

Weekly Downloads

1

Version

0.0.12

License

ISC

Last publish

Collaborators

  • blacksonic