nx/packages/angular/docs/webpack-dev-server-examples.md
Isaac Mann afa5eb59fa
docs(core): document the @nrwl => @nx rescope (#16403)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-04-27 18:14:59 -04:00

30 lines
818 B
Markdown

##### Seving an application with a custom webpack configuration
This executor should be used along with `@nx/angular:webpack-browser` to serve an application using a custom webpack configuration.
Your `project.json` file should contain a `build` and `serve` target that matches the following:
```json
"build": {
"executor": "@nx/angular:webpack-browser",
"options": {
...
"customWebpackConfig": {
"path": "apps/appName/webpack.config.js"
}
}
},
"serve": {
"executor": "@nx/angular:webpack-dev-server",
"configurations": {
"production": {
"browserTarget": "appName:build:production"
},
"development": {
"browserTarget": "appName:build:development"
}
},
"defaultConfiguration": "development",
}
```