@nx/webpack 17.2.2 → 17.2.4
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": "17.2.
|
|
3
|
+
"version": "17.2.4",
|
|
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": {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"webpack-dev-server": "^4.9.3",
|
|
63
63
|
"webpack-node-externals": "^3.0.0",
|
|
64
64
|
"webpack-subresource-integrity": "^5.1.0",
|
|
65
|
-
"@nx/devkit": "17.2.
|
|
66
|
-
"@nx/js": "17.2.
|
|
67
|
-
"@nrwl/webpack": "17.2.
|
|
65
|
+
"@nx/devkit": "17.2.4",
|
|
66
|
+
"@nx/js": "17.2.4",
|
|
67
|
+
"@nrwl/webpack": "17.2.4"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
@@ -37,8 +37,8 @@ async function* devServerExecutor(serveOptions, context) {
|
|
|
37
37
|
// Only add the dev server option if user is composable plugin.
|
|
38
38
|
// Otherwise, user should define `devServer` option directly in their webpack config.
|
|
39
39
|
if (typeof userDefinedWebpackConfig === 'function' &&
|
|
40
|
-
(0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig)
|
|
41
|
-
|
|
40
|
+
((0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig) ||
|
|
41
|
+
!buildOptions.standardWebpackConfigFunction)) {
|
|
42
42
|
config = await userDefinedWebpackConfig({ devServer }, {
|
|
43
43
|
options: buildOptions,
|
|
44
44
|
context,
|
|
@@ -32,8 +32,8 @@ async function getWebpackConfigs(options, context) {
|
|
|
32
32
|
? (0, config_1.composePluginsSync)((0, with_nx_1.withNx)(options), (0, with_web_1.withWeb)(options))
|
|
33
33
|
: (0, with_nx_1.withNx)(options))({}, { options, context });
|
|
34
34
|
if (typeof userDefinedWebpackConfig === 'function' &&
|
|
35
|
-
(0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig)
|
|
36
|
-
|
|
35
|
+
((0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig) ||
|
|
36
|
+
!options.standardWebpackConfigFunction)) {
|
|
37
37
|
// Old behavior, call the Nx-specific webpack config function that user exports
|
|
38
38
|
return await userDefinedWebpackConfig(config, {
|
|
39
39
|
options,
|