@nitro/webpack 9.3.6 → 9.4.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": "@nitro/webpack",
3
- "version": "9.3.6",
3
+ "version": "9.4.0",
4
4
  "description": "nitro webpack",
5
5
  "license": "MIT",
6
6
  "author": "The Nitro Team",
@@ -23,8 +23,8 @@
23
23
  "nitro"
24
24
  ],
25
25
  "dependencies": {
26
- "@babel/core": "7.25.9",
27
- "@babel/preset-env": "7.25.9",
26
+ "@babel/core": "7.26.0",
27
+ "@babel/preset-env": "7.26.0",
28
28
  "@babel/preset-react": "7.25.9",
29
29
  "@babel/plugin-proposal-decorators": "7.25.9",
30
30
  "@babel/plugin-transform-class-properties": "7.25.9",
@@ -42,7 +42,7 @@
42
42
  "postcss": "8.4.47",
43
43
  "postcss-loader": "4.3.0",
44
44
  "resolve-url-loader": "5.0.0",
45
- "sass": "1.80.3",
45
+ "sass": "1.80.6",
46
46
  "sass-loader": "10.5.2",
47
47
  "svgo": "3.3.2",
48
48
  "ts-config-webpack-plugin": "2.0.3",
package/readme.md CHANGED
@@ -68,6 +68,7 @@ Config:
68
68
  - `true` or `{}` will activate scss support
69
69
  - `{ publicPath: '../' }` provide a separate public path for stylesheets. By default, webpack uses the value from 'output.publicPath'. (only relevant for production build)
70
70
  - `{ implementation: require('node-sass') }` gives the possibility to use 'node-sass' as sass implementation. (you have to add 'node-sass' as a dev-dependency in your project)
71
+ - `{ sassOptions: { ... } }` gives the possibility to add options for the ['dart-sass'](https://sass-lang.com/documentation/js-api/interfaces/options/) or ['node-sass'](https://github.com/sass/node-sass/#options) implementation (e.g. ignore some deprecations for dart-sass with `silenceDeprecations: [...]`)
71
72
 
72
73
  #### `options.rules.hbs`
73
74
 
@@ -77,7 +78,7 @@ Config:
77
78
 
78
79
  Config:
79
80
 
80
- - `true` or `{}` will activate handlebars handlebars precompiled templates support
81
+ - `true` or `{}` will activate handlebars precompiled templates support
81
82
  - `{ include: [] }` additionally adds include config to rule
82
83
  - `{ exclude: [] }` additionally adds exclude config to rule
83
84
 
@@ -116,7 +116,8 @@ module.exports = (options = { rules: {}, features: {} }) => {
116
116
  // css & scss
117
117
  if (options.rules.scss) {
118
118
  const scssLoaderOptions = {
119
- ...(options.rules.scss.implementation && { implementation: options.rules.scss.implementation })
119
+ ...(options.rules.scss.implementation && { implementation: options.rules.scss.implementation }),
120
+ ...(options.rules.scss.sassOptions && { sassOptions: options.rules.scss.sassOptions }),
120
121
  };
121
122
  webpackConfig.module.rules.push({
122
123
  test: /\.s?css$/,
@@ -111,7 +111,8 @@ module.exports = (options = { rules: {}, features: {} }) => {
111
111
  ...(options.rules.scss.publicPath && { publicPath: options.rules.scss.publicPath })
112
112
  };
113
113
  const scssLoaderOptions = {
114
- ...(options.rules.scss.implementation && { implementation: options.rules.scss.implementation })
114
+ ...(options.rules.scss.implementation && { implementation: options.rules.scss.implementation }),
115
+ ...(options.rules.scss.sassOptions && { sassOptions: options.rules.scss.sassOptions }),
115
116
  };
116
117
  webpackConfig.module.rules.push({
117
118
  test: /\.s?css$/,