Run webpack build.
@nx/webpack
Package reference
Here is a list of all the executors, generators and migrations available from this package.
Executors
Serve a web application.
Serve a SSR application.
Generators
initInternal
Initialize the
@nx/webpack
plugin.configurationInternal
Add webpack configuration to a project.
convert-config-to-webpack-plugin
Convert the project to use the
NxAppWebpackPlugin
andNxReactWebpackPlugin
.Convert existing Webpack project(s) using
@nx/webpack:wepack
executor to use@nx/webpack/plugin
.
Migrations
21.0.x
20.7.x
20.5.x
19.7.x
19.6.x
update-21-0-0-remove-isolated-config
Remove isolatedConfig option for @nx/webpack:webpack
Remove isolatedConfig
option
The isolatedConfig
option is no longer supported by the @nx/webpack:webpack
executor. Previously, setting isolatedConfig: false
allowed you to use the executor's built-in Webpack configuration.
If this option is set in project.json
, then it will be removed in favor of an explicit webpackConfig
file. The Webpack configuration file matches the previous built-in configuration of the @nx/webpack:webpack
executor.
Sample Code Changes
1{
2 "targets": {
3 "build": {
4 "executor": "@nx/webpack:webpack",
5 "options": {
6 "isolatedConfig": false
7 }
8 }
9 }
10}
11
20.7.1-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
webpack | 5.98.0 | Update only |
webpack-dev-server | ^5.2.1 | Update only |
20.5.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
sass-loader | ^16.0.4 | Update only |
19.7.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
@module-federation/enhanced | ~0.6.0 | Update only |
@module-federation/sdk | ~0.6.0 | Update only |
update-19-6-3-proxy-config
Migrate proxy config files to match new format from webpack-dev-server v5.
19.6.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
webpack-dev-server | ^5.0.4 | Update only |