@nitro/webpack 9.3.6 → 9.4.1
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
|
+
"version": "9.4.1",
|
|
4
4
|
"description": "nitro webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Nitro Team",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"nitro"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/core": "7.
|
|
27
|
-
"@babel/preset-env": "7.
|
|
28
|
-
"@babel/preset-react": "7.
|
|
26
|
+
"@babel/core": "7.26.0",
|
|
27
|
+
"@babel/preset-env": "7.26.0",
|
|
28
|
+
"@babel/preset-react": "7.26.3",
|
|
29
29
|
"@babel/plugin-proposal-decorators": "7.25.9",
|
|
30
30
|
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
31
31
|
"autoprefixer": "10.4.20",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"img-loader": "4.0.0",
|
|
40
40
|
"js-config-webpack-plugin": "2.0.3",
|
|
41
41
|
"mini-css-extract-plugin": "1.6.2",
|
|
42
|
-
"postcss": "8.4.
|
|
42
|
+
"postcss": "8.4.49",
|
|
43
43
|
"postcss-loader": "4.3.0",
|
|
44
44
|
"resolve-url-loader": "5.0.0",
|
|
45
|
-
"sass": "1.
|
|
45
|
+
"sass": "1.83.0",
|
|
46
46
|
"sass-loader": "10.5.2",
|
|
47
47
|
"svgo": "3.3.2",
|
|
48
48
|
"ts-config-webpack-plugin": "2.0.3",
|
|
49
|
-
"typescript": "5.
|
|
49
|
+
"typescript": "5.7.2",
|
|
50
50
|
"url-loader": "4.1.1",
|
|
51
51
|
"webpack": "4.47.0",
|
|
52
|
-
"webpackbar": "
|
|
52
|
+
"webpackbar": "7.0.0",
|
|
53
53
|
"webpack-bundle-analyzer": "4.10.2"
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|
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
|
|
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$/,
|