@pixolith/webpack-sw6-config 7.5.0 → 7.5.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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixolith/webpack-sw6-config",
|
|
3
3
|
"public": true,
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.1",
|
|
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": "a0131a86ccd750d1249de2675f20ca575bef6b94",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.22.1",
|
|
27
27
|
"@babel/eslint-parser": "^7.21.8",
|
|
@@ -22,7 +22,18 @@ const Path = require('path'),
|
|
|
22
22
|
/-/g,
|
|
23
23
|
'',
|
|
24
24
|
)}/administration/js/${pluginName}.js`;
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
miniCssChunksConfig = {
|
|
28
|
+
filename: (chunkData) => {
|
|
29
|
+
let pluginName = chunkData.chunk.name
|
|
30
|
+
.toLowerCase()
|
|
31
|
+
.replace('vendor-', '');
|
|
32
|
+
return `${pluginName.replace(
|
|
33
|
+
/-/g,
|
|
34
|
+
'',
|
|
35
|
+
)}/administration/css/${pluginName}.css`;
|
|
36
|
+
}
|
|
26
37
|
}
|
|
27
38
|
|
|
28
39
|
module.exports = {
|
|
@@ -187,7 +198,7 @@ module.exports = {
|
|
|
187
198
|
},
|
|
188
199
|
}),
|
|
189
200
|
|
|
190
|
-
new MiniCssExtractPlugin(),
|
|
201
|
+
new MiniCssExtractPlugin(miniCssChunksConfig),
|
|
191
202
|
],
|
|
192
203
|
|
|
193
204
|
optimization: {
|