@pixolith/webpack-sw6-config 6.0.2 → 6.0.6

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.2",
4
+ "version": "6.0.6",
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": "d78e5794ce488f0c9b268a67a7a61451b83b8d79",
24
+ "gitHead": "39850ebf61621c71a9643238dd7734b1602c1dc8",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.16.12",
27
27
  "@babel/plugin-proposal-class-properties": "^7.16.7",
@@ -79,6 +79,7 @@
79
79
  "svg-transform-loader": "^2.0.8",
80
80
  "svgo-loader": "^2.2.1",
81
81
  "terser-webpack-plugin": "^2.3.3",
82
+ "time-fix-plugin": "^2.0.7",
82
83
  "url-loader": "^3.0.0",
83
84
  "webpack": "^4.41.5",
84
85
  "webpack-cli": "^3.3.10",
@@ -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',
@@ -76,6 +77,10 @@ module.exports = {
76
77
  options: {
77
78
  sourceMap: !isProd,
78
79
  additionalData: `$asset_url: '${ASSET_URL}';`,
80
+ sassOptions: {
81
+ quietDeps: true,
82
+ logger: sass.Logger.silent,
83
+ },
79
84
  },
80
85
  },
81
86
  {
@@ -120,6 +125,7 @@ module.exports = {
120
125
  warnings: false,
121
126
  errors: true,
122
127
  },
128
+ writeToDisk: true,
123
129
  headers: {
124
130
  'Access-Control-Allow-Origin': '*',
125
131
  'Access-Control-Allow-Methods':
@@ -196,9 +202,7 @@ module.exports = {
196
202
  },
197
203
  }),
198
204
 
199
- new WriteFilePlugin({
200
- exitOnErrors: false,
201
- }),
205
+ new TimeFixPlugin(),
202
206
 
203
207
  new webpack.DefinePlugin({
204
208
  'process.env.NODE_ENV': JSON.stringify(