@nx/webpack 21.0.0-beta.3 → 21.0.0-beta.5
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": "21.0.0-beta.
|
|
3
|
+
"version": "21.0.0-beta.5",
|
|
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.2.1",
|
|
67
67
|
"webpack-node-externals": "^3.0.0",
|
|
68
68
|
"webpack-subresource-integrity": "^5.1.0",
|
|
69
|
-
"@nx/devkit": "21.0.0-beta.
|
|
70
|
-
"@nx/js": "21.0.0-beta.
|
|
69
|
+
"@nx/devkit": "21.0.0-beta.5",
|
|
70
|
+
"@nx/js": "21.0.0-beta.5"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -100,9 +100,9 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
100
100
|
loader: require.resolve('sass-loader'),
|
|
101
101
|
options: {
|
|
102
102
|
api: 'modern-compiler',
|
|
103
|
-
implementation: options.sassImplementation === 'sass
|
|
104
|
-
? require.resolve('sass
|
|
105
|
-
: require.resolve('sass'),
|
|
103
|
+
implementation: options.sassImplementation === 'sass'
|
|
104
|
+
? require.resolve('sass')
|
|
105
|
+
: require.resolve('sass-embedded'),
|
|
106
106
|
sassOptions: {
|
|
107
107
|
fiber: false,
|
|
108
108
|
precision: 8,
|
|
@@ -160,9 +160,9 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
160
160
|
loader: require.resolve('sass-loader'),
|
|
161
161
|
options: {
|
|
162
162
|
api: 'modern-compiler',
|
|
163
|
-
implementation: options.sassImplementation === 'sass
|
|
164
|
-
? require.resolve('sass
|
|
165
|
-
: require.resolve('sass'),
|
|
163
|
+
implementation: options.sassImplementation === 'sass'
|
|
164
|
+
? require.resolve('sass')
|
|
165
|
+
: require.resolve('sass-embedded'),
|
|
166
166
|
sourceMap: !!options.sourceMap,
|
|
167
167
|
sassOptions: {
|
|
168
168
|
fiber: false,
|
|
@@ -225,9 +225,9 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
225
225
|
loader: require.resolve('sass-loader'),
|
|
226
226
|
options: {
|
|
227
227
|
api: 'modern-compiler',
|
|
228
|
-
implementation: options.sassImplementation === 'sass
|
|
229
|
-
? require.resolve('sass
|
|
230
|
-
: require.resolve('sass'),
|
|
228
|
+
implementation: options.sassImplementation === 'sass'
|
|
229
|
+
? require.resolve('sass')
|
|
230
|
+
: require.resolve('sass-embedded'),
|
|
231
231
|
sourceMap: !!options.sourceMap,
|
|
232
232
|
sassOptions: {
|
|
233
233
|
fiber: false,
|
|
@@ -88,7 +88,8 @@ function normalizeOptions(options) {
|
|
|
88
88
|
target: combinedPluginAndMaybeExecutorOptions.target,
|
|
89
89
|
targetName,
|
|
90
90
|
vendorChunk: combinedPluginAndMaybeExecutorOptions.vendorChunk ?? !isProd,
|
|
91
|
-
sassImplementation: combinedPluginAndMaybeExecutorOptions.sassImplementation ??
|
|
91
|
+
sassImplementation: combinedPluginAndMaybeExecutorOptions.sassImplementation ??
|
|
92
|
+
'sass-embedded',
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
function normalizeAssets(assets, root, sourceRoot, projectRoot, resolveRelativePathsToProjectRoot = true) {
|
|
@@ -213,6 +213,7 @@ export interface NxAppWebpackPluginOptions {
|
|
|
213
213
|
useTsconfigPaths?: boolean;
|
|
214
214
|
/**
|
|
215
215
|
* The implementation of the SASS compiler to use. Can be either `sass` or `sass-embedded`. Defaults to `sass-embedded`.
|
|
216
|
+
* @deprecated Sass option will be removed in Nx 22. This option will also be removed in Nx 22 as it is no longer needed.
|
|
216
217
|
*/
|
|
217
218
|
sassImplementation?: 'sass' | 'sass-embedded';
|
|
218
219
|
/**
|