@pixolith/webpack-sw6-config 7.0.3 → 7.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": "7.0.3",
4
+ "version": "7.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": "1516c8b53e358aba730b1114b551a75290e9d013",
24
+ "gitHead": "f311dedb498d20f175fc05e7f8a4ffbd73e406d5",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.21.3",
27
27
  "@babel/eslint-parser": "^7.21.3",
@@ -32,7 +32,7 @@
32
32
  "@babel/plugin-transform-classes": "^7.21.0",
33
33
  "@babel/plugin-transform-runtime": "^7.21.0",
34
34
  "@babel/preset-env": "^7.20.2",
35
- "@pixolith/eslint-config-sw6": "^7.0.0",
35
+ "@pixolith/eslint-config-sw6": "^7.0.5",
36
36
  "@pixolith/external-svg-sprite-loader": "^6.0.1",
37
37
  "@pixolith/stylelint-config-standard": "^7.0.0",
38
38
  "@pixolith/webpack-assets-copy-plugin": "^7.0.0",
@@ -50,6 +50,7 @@
50
50
  "cross-env": "^7.0.3",
51
51
  "css-loader": "^6.7.3",
52
52
  "css-minimizer-webpack-plugin": "^4.2.2",
53
+ "cssnano-preset-advanced": "^6.0.0",
53
54
  "deepmerge": "^4.3.0",
54
55
  "eslint": "^8.36.0",
55
56
  "eslint-friendly-formatter": "^4.0.1",
@@ -65,6 +66,7 @@
65
66
  "media-query-plugin": "^1.5.0",
66
67
  "postcss": "^8.4.21",
67
68
  "postcss-loader": "^7.0.2",
69
+ "postcss-pxtorem": "^6.0.0",
68
70
  "postcss-scss": "^4.0.6",
69
71
  "prettier": "^2.8.4",
70
72
  "process": "^0.11.10",
@@ -1,20 +1,15 @@
1
1
  module.exports = ({ file, options, env }) => {
2
2
  return {
3
- minimizerOptions: {
4
- preset: [
5
- 'default',
6
- {
7
- discardComments: { removeAll: true },
8
- },
9
- ],
10
- zindex: false,
11
- },
12
3
  plugins: {
13
4
  // to edit target browsers: use "browserslist" field in package.json
14
- //autoprefixer: {
15
- // grid: true,
16
- // env: options.mode + (options.isModern ? ':modern' : ''),
17
- //},
5
+ autoprefixer: {
6
+ env: options.mode + (options.isModern ? ':modern' : ''),
7
+ },
8
+ 'postcss-pxtorem': {
9
+ rootValue: 16,
10
+ unitPrecision: 5,
11
+ propList: ['*']
12
+ }
18
13
  },
19
14
  };
20
15
  };
@@ -15,13 +15,14 @@ const webpack = require('webpack'),
15
15
  removeAvailableModules: true,
16
16
  removeEmptyChunks: true,
17
17
  sideEffects: false,
18
+ minimize: true,
18
19
  minimizer: [
19
20
  new CssMinimizerPlugin({
20
21
  minimizerOptions: {
21
22
  preset: [
22
- "default",
23
+ "advanced",
23
24
  {
24
- discardComments: { removeAll: true },
25
+ zIndex: false,
25
26
  },
26
27
  ],
27
28
  },
package/src/.postcssrc.js DELETED
@@ -1,20 +0,0 @@
1
- module.exports = ({ file, options, env }) => {
2
- return {
3
- minimizerOptions: {
4
- preset: [
5
- 'default',
6
- {
7
- discardComments: { removeAll: true },
8
- },
9
- ],
10
- zindex: false,
11
- },
12
- plugins: {
13
- // to edit target browsers: use "browserslist" field in package.json
14
- autoprefixer: {
15
- grid: true,
16
- env: options.mode + (options.isModern ? ':modern' : ''),
17
- },
18
- },
19
- };
20
- };