@nx/webpack 17.2.0-beta.0 → 17.2.0-beta.10
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/plugin.d.ts +1 -0
- package/plugin.js +5 -0
- package/src/executors/dev-server/dev-server.impl.js +16 -25
- package/src/executors/dev-server/lib/get-dev-server-config.d.ts +2 -3
- package/src/executors/dev-server/lib/get-dev-server-config.js +18 -26
- package/src/executors/dev-server/schema.d.ts +8 -8
- package/src/executors/webpack/lib/normalize-options.js +6 -2
- package/src/executors/webpack/schema.d.ts +5 -3
- package/src/executors/webpack/schema.json +26 -51
- package/src/executors/webpack/webpack.impl.js +21 -19
- package/src/generators/configuration/configuration.js +69 -18
- package/src/generators/init/init.js +28 -2
- package/src/plugins/nx-webpack-plugin/lib/apply-base-config.js +146 -127
- package/src/plugins/nx-webpack-plugin/lib/apply-web-config.js +15 -5
- package/src/plugins/nx-webpack-plugin/lib/normalize-options.d.ts +2 -1
- package/src/plugins/nx-webpack-plugin/lib/normalize-options.js +25 -2
- package/src/plugins/nx-webpack-plugin/lib/stylesheet-loaders.js +3 -1
- package/src/plugins/nx-webpack-plugin/nx-webpack-plugin-options.d.ts +132 -3
- package/src/plugins/nx-webpack-plugin/nx-webpack-plugin.d.ts +1 -2
- package/src/plugins/nx-webpack-plugin/nx-webpack-plugin.js +9 -17
- package/src/plugins/plugin.d.ts +9 -0
- package/src/plugins/plugin.js +127 -0
- package/src/utils/config.d.ts +11 -6
- package/src/utils/config.js +48 -13
- package/src/utils/has-plugin.d.ts +2 -0
- package/src/utils/has-plugin.js +11 -0
- package/src/utils/versions.d.ts +1 -0
- package/src/utils/versions.js +2 -1
- package/src/utils/webpack/read-webpack-options.d.ts +10 -0
- package/src/utils/webpack/read-webpack-options.js +41 -0
- package/src/utils/webpack/resolve-user-defined-webpack-config.d.ts +1 -0
- package/src/utils/webpack/{custom-webpack.js → resolve-user-defined-webpack-config.js} +3 -8
- package/src/utils/with-nx.d.ts +4 -5
- package/src/utils/with-nx.js +7 -1
- package/src/utils/with-web.d.ts +2 -2
- package/src/executors/webpack/lib/get-webpack-config.d.ts +0 -5
- package/src/executors/webpack/lib/get-webpack-config.js +0 -16
- package/src/utils/webpack/custom-webpack.d.ts +0 -2
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWebpackConfig = void 0;
|
|
4
|
-
const with_nx_1 = require("../../../utils/with-nx");
|
|
5
|
-
const with_web_1 = require("../../../utils/with-web");
|
|
6
|
-
const config_1 = require("../../../utils/config");
|
|
7
|
-
/** @deprecated Use withNx, withWeb, or withReact */
|
|
8
|
-
// TODO(jack): Remove in Nx 16
|
|
9
|
-
function getWebpackConfig(context, options) {
|
|
10
|
-
const config = {};
|
|
11
|
-
const configure = options.target === 'web'
|
|
12
|
-
? (0, config_1.composePluginsSync)((0, with_nx_1.withNx)(), (0, with_web_1.withWeb)())
|
|
13
|
-
: (0, with_nx_1.withNx)();
|
|
14
|
-
return configure(config, { options, context });
|
|
15
|
-
}
|
|
16
|
-
exports.getWebpackConfig = getWebpackConfig;
|