@plaudit/webpack-extensions 1.3.0 → 2.0.0-beta.1

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.
@@ -24,8 +24,7 @@ function addEntryPointWithMapper(entrypoints, entrypoint, dir, mapper = (entrypo
24
24
  }
25
25
  }
26
26
  function default_1(config, webpackConfig = require("@wordpress/scripts/config/webpack.config")) {
27
- const { legacyPostcssPlugins = false, variables = node_fs_1.default.existsSync("./variables.js") ? require("./variables.js") : {}, // TODO: There must be a better way to handle this...
28
- } = config;
27
+ const { legacyPostcssPlugins = false, variables = ["variables.js", "preprocess/variables.js"].map(p => node_path_1.default.join(process.cwd(), p)).filter(p => node_fs_1.default.existsSync(p)).map(p => require(p))[0] ?? {}, } = config;
29
28
  // Nano Config
30
29
  // http://cssnano.co/guides/optimisations/ For the value to use click on one and then
31
30
  const nanoConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "1.3.0",
3
+ "version": "2.0.0-beta.1",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",
@@ -25,7 +25,6 @@
25
25
  "@plaudit/postcss-color-function": "^5.0.0",
26
26
  "@plaudit/postcss-silent-extend": "^3.0.0",
27
27
  "@plaudit/postcss-strip-units": "^3.0.0",
28
- "@plaudit/postcss-variables": "^1.0.0",
29
28
  "@wordpress/scripts": "^26.4.0",
30
29
  "autoprefixer": "^10.4.14",
31
30
  "clean-webpack-plugin": "^4.0.0",
@@ -34,21 +33,22 @@
34
33
  "eslint": "^8.42.0",
35
34
  "eslint-plugin-jsdoc": "^43.1.1",
36
35
  "fork-ts-checker-webpack-plugin": "^8.0.0",
37
- "postcss": "^8.4.24",
38
- "postcss-calc": "^9.0.1",
39
- "postcss-extend": "^1.0.5",
36
+ "postcss": "8.4.24",
37
+ "postcss-calc": "8.0.0",
40
38
  "postcss-fallback": "^0.1.0",
41
- "postcss-import": "^15.1.0",
42
- "postcss-inline-svg": "^6.0.0",
43
- "postcss-media-minmax": "^5.0.0",
44
- "postcss-mixins": "^9.0.4",
45
- "postcss-nested": "^6.0.1",
46
- "postcss-property-lookup": "^3.0.0",
39
+ "postcss-functions": "4.0.2",
40
+ "postcss-import": "14.0.2",
41
+ "postcss-inline-svg": "5.0.0",
42
+ "postcss-media-minmax": "5.0.0",
43
+ "postcss-mixins": "6.2.3",
44
+ "postcss-nested": "5.0.5",
45
+ "postcss-property-lookup": "3.0.0",
47
46
  "postcss-quantity-queries": "^0.5.0",
48
- "postcss-reporter": "^7.0.5",
47
+ "postcss-reporter": "7.0.2",
49
48
  "postcss-short-position": "^4.0.1",
50
49
  "postcss-short-size": "^4.0.0",
51
50
  "postcss-short-spacing": "^4.0.0",
51
+ "postcss-simple-vars": "^6.0.3",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "webpack": "^5.86.0",