@pixolith/webpack-sw6-config 6.0.3 → 6.0.7

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.3",
4
+ "version": "6.0.7",
5
5
  "description": "",
6
6
  "main": "src/index.js",
7
7
  "scripts": {},
@@ -21,11 +21,12 @@
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": "67f83c07f54fdf8169e6fe302865273f20566de7",
24
+ "gitHead": "1afb964e58fd5dd972b4c8b5af2f23c3c769ac83",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.16.12",
27
27
  "@babel/plugin-proposal-class-properties": "^7.16.7",
28
28
  "@babel/plugin-proposal-object-rest-spread": "^7.16.7",
29
+ "@babel/plugin-proposal-optional-chaining": "^7.16.7",
29
30
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
30
31
  "@babel/plugin-transform-classes": "^7.16.7",
31
32
  "@babel/plugin-transform-runtime": "^7.16.10",
@@ -79,6 +80,7 @@
79
80
  "svg-transform-loader": "^2.0.8",
80
81
  "svgo-loader": "^2.2.1",
81
82
  "terser-webpack-plugin": "^2.3.3",
83
+ "time-fix-plugin": "^2.0.7",
82
84
  "url-loader": "^3.0.0",
83
85
  "webpack": "^4.41.5",
84
86
  "webpack-cli": "^3.3.10",
@@ -23,5 +23,6 @@ module.exports = {
23
23
  '@babel/proposal-object-rest-spread',
24
24
  '@babel/plugin-proposal-class-properties',
25
25
  '@babel/plugin-transform-classes',
26
+ '@babel/plugin-proposal-optional-chaining',
26
27
  ],
27
28
  };
@@ -6,14 +6,15 @@ 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'),
13
12
  watcher = require('@pixolith/webpack-watcher'),
14
13
  Glob = require('glob'),
15
14
  isModern = process.env.MODE === 'modern',
16
- HookPlugin = require('@pixolith/webpack-hook-plugin');
15
+ HookPlugin = require('@pixolith/webpack-hook-plugin'),
16
+ sass = require('sass'),
17
+ TimeFixPlugin = require('time-fix-plugin');
17
18
 
18
19
  module.exports = {
19
20
  target: 'web',
@@ -77,8 +78,8 @@ module.exports = {
77
78
  sourceMap: !isProd,
78
79
  additionalData: `$asset_url: '${ASSET_URL}';`,
79
80
  sassOptions: {
80
- quiet: true,
81
81
  quietDeps: true,
82
+ logger: sass.Logger.silent,
82
83
  },
83
84
  },
84
85
  },
@@ -124,6 +125,7 @@ module.exports = {
124
125
  warnings: false,
125
126
  errors: true,
126
127
  },
128
+ writeToDisk: true,
127
129
  headers: {
128
130
  'Access-Control-Allow-Origin': '*',
129
131
  'Access-Control-Allow-Methods':
@@ -200,9 +202,7 @@ module.exports = {
200
202
  },
201
203
  }),
202
204
 
203
- new WriteFilePlugin({
204
- exitOnErrors: false,
205
- }),
205
+ new TimeFixPlugin(),
206
206
 
207
207
  new webpack.DefinePlugin({
208
208
  'process.env.NODE_ENV': JSON.stringify(