@nx/webpack 19.5.5 → 19.6.0-beta.0
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": "19.
|
|
3
|
+
"version": "19.6.0-beta.0",
|
|
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": {
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"webpack-dev-server": "^4.9.3",
|
|
70
70
|
"webpack-node-externals": "^3.0.0",
|
|
71
71
|
"webpack-subresource-integrity": "^5.1.0",
|
|
72
|
-
"@nx/devkit": "19.
|
|
73
|
-
"@nx/js": "19.
|
|
74
|
-
"@nrwl/webpack": "19.
|
|
72
|
+
"@nx/devkit": "19.6.0-beta.0",
|
|
73
|
+
"@nx/js": "19.6.0-beta.0",
|
|
74
|
+
"@nrwl/webpack": "19.6.0-beta.0"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
@@ -5,7 +5,7 @@ exports.configurationGeneratorInternal = configurationGeneratorInternal;
|
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const init_1 = require("../init/init");
|
|
7
7
|
const has_plugin_1 = require("../../utils/has-plugin");
|
|
8
|
-
const
|
|
8
|
+
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
9
9
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
10
10
|
function configurationGenerator(tree, options) {
|
|
11
11
|
return configurationGeneratorInternal(tree, { addPlugin: false, ...options });
|
|
@@ -125,7 +125,7 @@ module.exports = composePlugins(withNx(), (config) => {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
function addBuildTarget(tree, options) {
|
|
128
|
-
(0,
|
|
128
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, '@nx/webpack:webpack');
|
|
129
129
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
130
130
|
const buildOptions = {
|
|
131
131
|
target: options.target,
|
package/src/plugins/plugin.js
CHANGED
|
@@ -150,6 +150,7 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
|
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
152
|
targets[options.serveStaticTargetName] = {
|
|
153
|
+
dependsOn: [options.buildTargetName],
|
|
153
154
|
executor: '@nx/web:file-server',
|
|
154
155
|
options: {
|
|
155
156
|
buildTarget: options.buildTargetName,
|