@nitro/webpack 6.0.0-rc.2 → 6.0.2
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": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "nitro webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Nitro Team",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "7.16.0",
|
|
27
|
-
"@babel/preset-env": "7.16.
|
|
27
|
+
"@babel/preset-env": "7.16.4",
|
|
28
28
|
"@babel/preset-react": "7.16.0",
|
|
29
|
-
"@babel/plugin-proposal-decorators": "7.16.
|
|
29
|
+
"@babel/plugin-proposal-decorators": "7.16.4",
|
|
30
30
|
"@babel/plugin-proposal-class-properties": "7.16.0",
|
|
31
31
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
32
32
|
"autoprefixer": "10.4.0",
|
|
@@ -43,23 +43,22 @@
|
|
|
43
43
|
"js-config-webpack-plugin": "2.0.3",
|
|
44
44
|
"mini-css-extract-plugin": "1.6.2",
|
|
45
45
|
"optimize-css-assets-webpack-plugin": "6.0.1",
|
|
46
|
-
"postcss": "8.
|
|
46
|
+
"postcss": "8.4.1",
|
|
47
47
|
"postcss-loader": "4.3.0",
|
|
48
48
|
"resolve-url-loader": "4.0.0",
|
|
49
|
-
"sass": "1.43.
|
|
49
|
+
"sass": "1.43.5",
|
|
50
50
|
"sass-loader": "10.2.0",
|
|
51
51
|
"stylelint": "13.13.1",
|
|
52
52
|
"stylelint-webpack-plugin": "2.2.2",
|
|
53
53
|
"svgo": "2.8.0",
|
|
54
54
|
"ts-config-webpack-plugin": "2.0.3",
|
|
55
|
-
"typescript": "4.
|
|
55
|
+
"typescript": "4.5.2",
|
|
56
56
|
"url-loader": "4.1.1",
|
|
57
57
|
"webpack": "4.46.0",
|
|
58
58
|
"webpackbar": "5.0.2",
|
|
59
59
|
"webpack-bundle-analyzer": "4.5.0"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"imagemin-gifsicle": "7.0.0",
|
|
63
62
|
"imagemin-mozjpeg": "9.0.0",
|
|
64
63
|
"imagemin-optipng": "8.0.0",
|
|
65
64
|
"imagemin-pngquant": "9.0.2",
|
|
@@ -220,16 +220,13 @@ module.exports = (options = { rules: {}, features: {} }) => {
|
|
|
220
220
|
if (options.rules.image) {
|
|
221
221
|
// image loader & minification
|
|
222
222
|
const imageMinificationRule = {
|
|
223
|
-
test: /\.(png|jpg|
|
|
223
|
+
test: /\.(png|jpg|svg)$/,
|
|
224
224
|
// Specify enforce: 'pre' to apply the loader before url-loader
|
|
225
225
|
enforce: 'pre',
|
|
226
226
|
use: {
|
|
227
227
|
loader: require.resolve('img-loader'),
|
|
228
228
|
options: {
|
|
229
229
|
plugins: [
|
|
230
|
-
require('imagemin-gifsicle')({
|
|
231
|
-
interlaced: false,
|
|
232
|
-
}),
|
|
233
230
|
require('imagemin-mozjpeg')({
|
|
234
231
|
quality: 75,
|
|
235
232
|
progressive: true,
|