File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
packages/angular_devkit/build_webpack Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 11# Webpack Builder for Architect
22
3- WIP
3+ This package allows you to run Webpack and Webpack Dev Server using Architect.
4+
5+ To use it on your Angular CLI app, follow these steps:
6+
7+ - run ` npm install @angular-devkit/build-webpack ` .
8+ - create a webpack configuration.
9+ - add the following targets inside ` angular.json ` .
10+ ```
11+ "projects": {
12+ "app": {
13+ // ...
14+ "architect": {
15+ // ...
16+ "build-webpack": {
17+ "builder": "@angular-devkit/build-webpack:webpack",
18+ "options": {
19+ "webpackConfig": "webpack.config.js"
20+ }
21+ },
22+ "serve-webpack": {
23+ "builder": "@angular-devkit/build-webpack:webpack-dev-server",
24+ "options": {
25+ "webpackConfig": "webpack.config.js"
26+ }
27+ }
28+ }
29+ ```
30+ - run ` ng run app:build-webpack ` to build, and ` ng run app:serve-webpack ` to serve.
31+
32+ All options, including ` watch ` and ` stats ` , are looked up inside the webpack configuration.
You can’t perform that action at this time.
0 commit comments