wp-blank-scripts 4.0.0-alpha.2 → 4.0.0-alpha.3
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 +1 -1
- package/webpack.base.config.js +3 -2
package/package.json
CHANGED
package/webpack.base.config.js
CHANGED
|
@@ -303,7 +303,8 @@ function makeBaseConfig(options) {
|
|
|
303
303
|
sourceMap: !isProd,
|
|
304
304
|
additionalData: (content, loaderContext) =>
|
|
305
305
|
loaderContext.resourcePath.endsWith('.css') ? content : sassVariables + content,
|
|
306
|
-
sassOptions: {
|
|
306
|
+
sassOptions: (loaderContext) => ({
|
|
307
|
+
syntax: loaderContext.resourcePath.endsWith('.css') ? 'scss' : undefined,
|
|
307
308
|
loadPaths: [process.cwd()],
|
|
308
309
|
// Handle @import 'node_modules/foo/bar' resolving to a .css file.
|
|
309
310
|
// Dart Sass won't find .css files when the extension is omitted, so
|
|
@@ -331,7 +332,7 @@ function makeBaseConfig(options) {
|
|
|
331
332
|
// project-by-project via: wp-scripts migrate-sass
|
|
332
333
|
// New projects using @use/@forward won't trigger these.
|
|
333
334
|
silenceDeprecations: ['import', 'color-functions', 'slash-div', 'global-builtin'],
|
|
334
|
-
},
|
|
335
|
+
}),
|
|
335
336
|
},
|
|
336
337
|
},
|
|
337
338
|
],
|