@pixolith/webpack-sw6-config 6.0.4 → 6.0.5
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": "6.0.
|
|
4
|
+
"version": "6.0.5",
|
|
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": "b1b787d41296a845aef06a47e3beecd4fb848e63",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.16.12",
|
|
27
27
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
@@ -6,7 +6,6 @@ const webpack = require('webpack'),
|
|
|
6
6
|
OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'),
|
|
7
7
|
StyleLintPlugin = require('stylelint-webpack-plugin'),
|
|
8
8
|
isProd = process.env.NODE_ENV === 'production',
|
|
9
|
-
WriteFilePlugin = require('write-file-webpack-plugin'),
|
|
10
9
|
privatePath = process.env.PLUGIN_PATH,
|
|
11
10
|
ExtractCssChunks = require('extract-css-chunks-webpack-plugin'),
|
|
12
11
|
FilenameLinterPlugin = require('@pixolith/webpack-filename-linter-plugin'),
|
|
@@ -125,6 +124,7 @@ module.exports = {
|
|
|
125
124
|
warnings: false,
|
|
126
125
|
errors: true,
|
|
127
126
|
},
|
|
127
|
+
writeToDisk: true,
|
|
128
128
|
headers: {
|
|
129
129
|
'Access-Control-Allow-Origin': '*',
|
|
130
130
|
'Access-Control-Allow-Methods':
|
|
@@ -201,10 +201,6 @@ module.exports = {
|
|
|
201
201
|
},
|
|
202
202
|
}),
|
|
203
203
|
|
|
204
|
-
new WriteFilePlugin({
|
|
205
|
-
exitOnErrors: false,
|
|
206
|
-
}),
|
|
207
|
-
|
|
208
204
|
new webpack.DefinePlugin({
|
|
209
205
|
'process.env.NODE_ENV': JSON.stringify(
|
|
210
206
|
process.env.NODE_ENV || 'development',
|