@pixolith/webpack-sw6-config 6.0.1 → 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.1",
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": "4cd8ee04ad9e0203092df63bc6ba6b061348db14",
24
+ "gitHead": "b1b787d41296a845aef06a47e3beecd4fb848e63",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.16.12",
27
27
  "@babel/plugin-proposal-class-properties": "^7.16.7",
@@ -6,14 +6,14 @@ 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
17
 
18
18
  module.exports = {
19
19
  target: 'web',
@@ -75,7 +75,11 @@ module.exports = {
75
75
  loader: 'sass-loader',
76
76
  options: {
77
77
  sourceMap: !isProd,
78
- prependData: `$asset_url: '${ASSET_URL}';`,
78
+ additionalData: `$asset_url: '${ASSET_URL}';`,
79
+ sassOptions: {
80
+ quietDeps: true,
81
+ logger: sass.Logger.silent,
82
+ },
79
83
  },
80
84
  },
81
85
  {
@@ -120,6 +124,7 @@ module.exports = {
120
124
  warnings: false,
121
125
  errors: true,
122
126
  },
127
+ writeToDisk: true,
123
128
  headers: {
124
129
  'Access-Control-Allow-Origin': '*',
125
130
  'Access-Control-Allow-Methods':
@@ -196,10 +201,6 @@ module.exports = {
196
201
  },
197
202
  }),
198
203
 
199
- new WriteFilePlugin({
200
- exitOnErrors: false,
201
- }),
202
-
203
204
  new webpack.DefinePlugin({
204
205
  'process.env.NODE_ENV': JSON.stringify(
205
206
  process.env.NODE_ENV || 'development',