@pixolith/webpack-sw6-config 7.2.2 → 7.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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixolith/webpack-sw6-config",
|
|
3
3
|
"public": true,
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.4.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"scripts": {},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://github.com/pixolith/webpack-plugins/issues"
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/pixolith/webpack-plugins/tree/master/packages/webpack-hook-plugin/#readme",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "671c789fac8e2b734372b8bf50eba8888c861d73",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.22.1",
|
|
27
27
|
"@babel/eslint-parser": "^7.21.8",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@babel/preset-env": "^7.22.4",
|
|
35
35
|
"@babel/preset-typescript": "^7.21.5",
|
|
36
36
|
"@pixolith/eslint-config-sw6": "^7.2.0",
|
|
37
|
-
"@pixolith/external-svg-sprite-loader": "^7.
|
|
37
|
+
"@pixolith/external-svg-sprite-loader": "^7.3.0",
|
|
38
38
|
"@pixolith/stylelint-config-standard": "^7.2.0",
|
|
39
39
|
"@pixolith/webpack-assets-copy-plugin": "^7.1.0",
|
|
40
40
|
"@pixolith/webpack-filename-linter-plugin": "^7.0.0",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"postcss-pxtorem": "^6.0.0",
|
|
71
71
|
"postcss-scss": "^4.0.6",
|
|
72
72
|
"prettier": "^2.8.8",
|
|
73
|
+
"resolve-url-loader": "^5.0.0",
|
|
73
74
|
"rimraf": "^5.0.1",
|
|
74
75
|
"sass": "^1.62.1",
|
|
75
76
|
"sass-loader": "^13.3.1",
|
|
@@ -61,10 +61,13 @@ module.exports = {
|
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
|
+
{
|
|
65
|
+
loader: 'resolve-url-loader',
|
|
66
|
+
},
|
|
64
67
|
{
|
|
65
68
|
loader: 'sass-loader',
|
|
66
69
|
options: {
|
|
67
|
-
sourceMap:
|
|
70
|
+
sourceMap: true,
|
|
68
71
|
additionalData: `$asset_url: '${ASSET_URL}';`,
|
|
69
72
|
sassOptions: {
|
|
70
73
|
quietDeps: true,
|
|
@@ -214,15 +217,6 @@ module.exports = {
|
|
|
214
217
|
// '@media(min-width:1280px)': 'desktop',
|
|
215
218
|
// }
|
|
216
219
|
//}),
|
|
217
|
-
]
|
|
218
|
-
Glob.sync(Path.join(privatePath, '/**/*.s?(a|c)ss')).length
|
|
219
|
-
? new StyleLintPlugin({
|
|
220
|
-
files: '**/Pxsw*/**/*.s?(a|c)ss',
|
|
221
|
-
failOnError: false,
|
|
222
|
-
fix: false,
|
|
223
|
-
configFile: Path.join(__dirname, 'stylelint.config.js'),
|
|
224
|
-
})
|
|
225
|
-
: [],
|
|
226
|
-
),
|
|
220
|
+
],
|
|
227
221
|
watch: false,
|
|
228
222
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
const webpack = require('webpack'),
|
|
2
2
|
TerserPlugin = require('terser-webpack-plugin'),
|
|
3
3
|
CssMinimizerPlugin = require('css-minimizer-webpack-plugin'),
|
|
4
|
+
StyleLintPlugin = require('stylelint-webpack-plugin'),
|
|
5
|
+
Glob = require('glob'),
|
|
6
|
+
Path = require('path'),
|
|
7
|
+
privatePath = process.env.PLUGIN_PATH,
|
|
4
8
|
isModern = process.env.MODE === 'modern',
|
|
5
9
|
config = {
|
|
6
10
|
devtool: 'nosources-source-map',
|
|
@@ -55,7 +59,16 @@ const webpack = require('webpack'),
|
|
|
55
59
|
'process.env': {
|
|
56
60
|
NODE_ENV: '"production"',
|
|
57
61
|
},
|
|
58
|
-
})
|
|
62
|
+
}).concat(
|
|
63
|
+
Glob.sync(Path.join(privatePath, '/**/*.s?(a|c)ss')).length
|
|
64
|
+
? new StyleLintPlugin({
|
|
65
|
+
files: '**/Pxsw*/**/*.s?(a|c)ss',
|
|
66
|
+
failOnError: false,
|
|
67
|
+
fix: false,
|
|
68
|
+
configFile: Path.join(__dirname, 'stylelint.config.js'),
|
|
69
|
+
})
|
|
70
|
+
: [],
|
|
71
|
+
),
|
|
59
72
|
],
|
|
60
73
|
stats: 'normal',
|
|
61
74
|
};
|