@nx/webpack 20.7.0 → 20.8.0-canary.20250402-2d210b8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.8.0-canary.20250402-2d210b8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"webpack-dev-server": "^5.0.4",
|
|
67
67
|
"webpack-node-externals": "^3.0.0",
|
|
68
68
|
"webpack-subresource-integrity": "^5.1.0",
|
|
69
|
-
"@nx/devkit": "20.
|
|
70
|
-
"@nx/js": "20.
|
|
69
|
+
"@nx/devkit": "20.8.0-canary.20250402-2d210b8",
|
|
70
|
+
"@nx/js": "20.8.0-canary.20250402-2d210b8"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -73,6 +73,7 @@ export interface NxAppWebpackPluginOptions {
|
|
|
73
73
|
crossOrigin?: 'none' | 'anonymous' | 'use-credentials';
|
|
74
74
|
/**
|
|
75
75
|
* Delete the output path before building.
|
|
76
|
+
* @deprecated Use the `output.clean` option in Webpack. https://webpack.js.org/guides/output-management/#cleaning-up-the-dist-folder
|
|
76
77
|
*/
|
|
77
78
|
deleteOutputPath?: boolean;
|
|
78
79
|
/**
|
|
@@ -29,6 +29,10 @@ class NxAppWebpackPlugin {
|
|
|
29
29
|
if (typeof target === 'string') {
|
|
30
30
|
this.options.target = target;
|
|
31
31
|
}
|
|
32
|
+
// Prefer `clean` option from Webpack config over our own.
|
|
33
|
+
if (typeof compiler.options.output?.clean !== 'undefined') {
|
|
34
|
+
this.options.deleteOutputPath = false;
|
|
35
|
+
}
|
|
32
36
|
(0, apply_base_config_1.applyBaseConfig)(this.options, compiler.options, {
|
|
33
37
|
useNormalizedEntry: true,
|
|
34
38
|
});
|