@plaudit/webpack-extensions 0.0.11 → 0.0.13

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.
@@ -4,4 +4,4 @@ export interface PlauditWordpressWebpackConfig {
4
4
  variables: Record<string, any>;
5
5
  src: string;
6
6
  }
7
- export default function (config: Partial<PlauditWordpressWebpackConfig>, webpackConfig?: Configuration): Configuration;
7
+ export default function (config?: Partial<PlauditWordpressWebpackConfig>, webpackConfig?: Configuration): Configuration;
@@ -18,8 +18,8 @@ function addEntryPointWithFilter(entrypoints, entrypoint, mapper = (entrypoint)
18
18
  entrypoints.push(mapper(entrypoint));
19
19
  }
20
20
  }
21
- function default_1(config, webpackConfig = require("@wordpress/scripts/config/webpack.config")) {
22
- const { legacyPostcssPlugins = false, variables = require("./variables.js"), // TODO: There must be a better way to handle this...
21
+ function default_1(config = {}, webpackConfig = require("@wordpress/scripts/config/webpack.config")) {
22
+ const { legacyPostcssPlugins = false, variables = node_fs_1.default.existsSync("./variables.js") ? require("./variables.js") : {}, // TODO: There must be a better way to handle this...
23
23
  src = process.env['WP_SRC_DIRECTORY'] || 'src' } = config;
24
24
  (webpackConfig.plugins ?? (webpackConfig.plugins = [])).push(new fork_ts_checker_webpack_plugin_1.default({
25
25
  typescript: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",
@@ -16,8 +16,8 @@
16
16
  "@types/node": "^18.15.12",
17
17
  "@types/webpack": "^5.28.1",
18
18
  "@types/webpack-sources": "^3.2.0",
19
- "postcss-loader": "^7.2.4",
20
19
  "postcss-load-config": "^4.0.1",
20
+ "postcss-loader": "^7.2.4",
21
21
  "typescript": "^5.0.4"
22
22
  },
23
23
  "dependencies": {
@@ -39,6 +39,7 @@
39
39
  "postcss-import": "^15.1.0",
40
40
  "postcss-inline-svg": "^6.0.0",
41
41
  "postcss-media-minmax": "^5.0.0",
42
+ "postcss-mixins": "^9.0.4",
42
43
  "postcss-nested": "^6.0.1",
43
44
  "postcss-property-lookup": "^3.0.0",
44
45
  "postcss-quantity-queries": "^0.5.0",
@@ -72,6 +73,7 @@
72
73
  "postcss-import": "^15.1.0",
73
74
  "postcss-inline-svg": "^6.0.0",
74
75
  "postcss-media-minmax": "^5.0.0",
76
+ "postcss-mixins": "^9.0.4",
75
77
  "postcss-nested": "^6.0.1",
76
78
  "postcss-property-lookup": "^3.0.0",
77
79
  "postcss-quantity-queries": "^0.5.0",