JSPM

@angular-devkit/build-webpack

0.1902.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3803300
  • Score
    100M100P100Q211408F
  • License MIT

Webpack Builder for Architect

Package Exports

  • @angular-devkit/build-webpack
  • @angular-devkit/build-webpack/index
  • @angular-devkit/build-webpack/index.js
  • @angular-devkit/build-webpack/package.json
  • @angular-devkit/build-webpack/src/builders/webpack-dev-server/index
  • @angular-devkit/build-webpack/src/builders/webpack-dev-server/index.js
  • @angular-devkit/build-webpack/src/builders/webpack-dev-server/schema
  • @angular-devkit/build-webpack/src/builders/webpack-dev-server/schema.js
  • @angular-devkit/build-webpack/src/builders/webpack/index
  • @angular-devkit/build-webpack/src/builders/webpack/index.js
  • @angular-devkit/build-webpack/src/builders/webpack/schema
  • @angular-devkit/build-webpack/src/builders/webpack/schema.js
  • @angular-devkit/build-webpack/src/index
  • @angular-devkit/build-webpack/src/index.js
  • @angular-devkit/build-webpack/src/utils
  • @angular-devkit/build-webpack/src/utils.js

Readme

Webpack Builder for Architect

This package allows you to run Webpack and Webpack Dev Server using Architect.

To use it on your Angular CLI app, follow these steps:

  • run npm install @angular-devkit/build-webpack.
  • create a webpack configuration.
  • add the following targets inside angular.json.
  "projects": {
    "app": {
      // ...
      "architect": {
        // ...
        "build-webpack": {
          "builder": "@angular-devkit/build-webpack:webpack",
          "options": {
            "webpackConfig": "webpack.config.js"
          }
        },
        "serve-webpack": {
          "builder": "@angular-devkit/build-webpack:webpack-dev-server",
          "options": {
            "webpackConfig": "webpack.config.js"
          }
        }
      }
  • run ng run app:build-webpack to build, and ng run app:serve-webpack to serve.

All options, including watch and stats, are looked up inside the webpack configuration.