source: trip-planner-front/node_modules/@angular-devkit/build-webpack/README.md@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 956 bytes
RevLine 
[6a3a178]1# Webpack Builder for Architect
2
3This package allows you to run Webpack and Webpack Dev Server using Architect.
4
5To 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```
12 "projects": {
13 "app": {
14 // ...
15 "architect": {
16 // ...
17 "build-webpack": {
18 "builder": "@angular-devkit/build-webpack:webpack",
19 "options": {
20 "webpackConfig": "webpack.config.js"
21 }
22 },
23 "serve-webpack": {
24 "builder": "@angular-devkit/build-webpack:webpack-dev-server",
25 "options": {
26 "webpackConfig": "webpack.config.js"
27 }
28 }
29 }
30```
31
32- run `ng run app:build-webpack` to build, and `ng run app:serve-webpack` to serve.
33
34All options, including `watch` and `stats`, are looked up inside the webpack configuration.
Note: See TracBrowser for help on using the repository browser.