@nx/webpack 17.2.0-beta.11 → 17.2.0-beta.12
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 +4 -4
- package/src/plugins/plugin.d.ts +1 -1
- package/src/plugins/plugin.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "17.2.0-beta.
|
|
3
|
+
"version": "17.2.0-beta.12",
|
|
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.0-beta.
|
|
66
|
-
"@nx/js": "17.2.0-beta.
|
|
67
|
-
"@nrwl/webpack": "17.2.0-beta.
|
|
65
|
+
"@nx/devkit": "17.2.0-beta.12",
|
|
66
|
+
"@nx/js": "17.2.0-beta.12",
|
|
67
|
+
"@nrwl/webpack": "17.2.0-beta.12"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateDependencies, CreateNodes } from '@nx/devkit';
|
|
|
2
2
|
export interface WebpackPluginOptions {
|
|
3
3
|
buildTargetName?: string;
|
|
4
4
|
serveTargetName?: string;
|
|
5
|
-
|
|
5
|
+
serveStaticTargetName?: string;
|
|
6
6
|
previewTargetName?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const createDependencies: CreateDependencies;
|
package/src/plugins/plugin.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.createNodes = [
|
|
|
31
31
|
options ??= {};
|
|
32
32
|
options.buildTargetName ??= 'build';
|
|
33
33
|
options.serveTargetName ??= 'serve';
|
|
34
|
-
options.
|
|
34
|
+
options.serveStaticTargetName ??= 'serve-static';
|
|
35
35
|
options.previewTargetName ??= 'preview';
|
|
36
36
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
37
37
|
// Do not create a project if package.json and project.json isn't there.
|
|
@@ -107,10 +107,10 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
|
|
|
107
107
|
cwd: projectRoot,
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
|
-
targets[options.
|
|
110
|
+
targets[options.serveStaticTargetName] = {
|
|
111
111
|
executor: '@nx/web:file-server',
|
|
112
112
|
options: {
|
|
113
|
-
buildTarget:
|
|
113
|
+
buildTarget: options.buildTargetName,
|
|
114
114
|
},
|
|
115
115
|
};
|
|
116
116
|
return targets;
|