@ideasonpurpose/build-tools-wordpress 2.2.6 → 2.3.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### v2.3.0
8
+
9
+ > 19 October 2025
10
+
11
+ - Fixes and optimizations for multiple entry points
12
+
13
+ #### v2.2.6
14
+
15
+ > 18 October 2025
16
+
17
+ - bump deps
18
+
7
19
  #### v2.2.5
8
20
 
9
21
  > 6 October 2025
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ideasonpurpose/build-tools-wordpress
2
2
 
3
- #### Version 2.2.6
3
+ #### Version 2.3.1
4
4
 
5
5
  [![NPM Version](https://img.shields.io/npm/v/%40ideasonpurpose%2Fbuild-tools-wordpress?logo=npm)](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
6
6
  [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ideasonpurpose/build-tools-wordpress/npm-publish.yml?logo=github&logoColor=white)](https://github.com/ideasonpurpose/build-tools-wordpress#readme)
@@ -89,6 +89,8 @@ export default async (env) => {
89
89
 
90
90
  const proxy = isProduction ? {} : await devserverProxy(config);
91
91
 
92
+ // console.log({config});
93
+ // console.log({entry: config.entry});
92
94
  /**
93
95
  * `usePolling` is a placeholder, try and detect native Windows Docker mounts
94
96
  * since they don't support file-watching (no inotify events), if there's
@@ -120,6 +122,8 @@ export default async (env) => {
120
122
  // const usePollingDebug = false; // Set to false to test without polling
121
123
  // const pollIntervalDebug = 400;
122
124
 
125
+ // console.log({ entry: config.entry });
126
+
123
127
  return {
124
128
  stats,
125
129
  module: {
@@ -136,7 +140,7 @@ export default async (env) => {
136
140
  {
137
141
  test: /\.(scss|css)$/,
138
142
  use: [
139
- { loader: MiniCssExtractPlugin.loader },
143
+ MiniCssExtractPlugin.loader,
140
144
  {
141
145
  loader: "css-loader",
142
146
  options: {
@@ -261,9 +265,11 @@ export default async (env) => {
261
265
  host: "0.0.0.0",
262
266
  allowedHosts: "all",
263
267
  port: "auto",
268
+
264
269
  hot: true, // Enable hot module replacement with fallback to full reload
265
270
  client: {
266
- logging: "info",
271
+ logging: "verbose",
272
+ // logging: "info",
267
273
  overlay: {
268
274
  errors: true,
269
275
  warnings: true,
@@ -350,7 +356,6 @@ export default async (env) => {
350
356
  },
351
357
 
352
358
  setupMiddlewares: (middlewares, devServer) => {
353
-
354
359
  /**
355
360
  * The `/inform` route is an annoying bit of code. Here's why:
356
361
  * Ubiquity Wi-fi hardware frequently spams the shit out of their
@@ -387,10 +392,14 @@ export default async (env) => {
387
392
  return middlewares;
388
393
  },
389
394
 
395
+ liveReload: true,
390
396
  watchFiles: {
391
397
  paths: [
392
398
  // Watch all PHP, HTML, SVG, and JSON files in the theme directory
393
399
  path.resolve(config.src, "..") + "/**/*.{php,html,svg,json}",
400
+ // Watch CSS files in dist to workaround a bug in mini-css-extract-plugin
401
+ // @link https://github.com/webpack/mini-css-extract-plugin/issues/730
402
+ path.resolve(config.dist, "..") + "/**/*.css",
394
403
  ],
395
404
  options: {
396
405
  ignored: [
@@ -398,6 +407,7 @@ export default async (env) => {
398
407
  "**/vendor/**",
399
408
  "**/node_modules/**",
400
409
  "**/dist/**",
410
+ "!**/dist/**/*.css",
401
411
  ],
402
412
  ignoreInitial: false, // Allow initial file discovery
403
413
  ignorePermissionErrors: true,
@@ -420,6 +430,7 @@ export default async (env) => {
420
430
  plugins: [
421
431
  new MiniCssExtractPlugin({
422
432
  filename: isProduction ? "[name]-[contenthash:8].css" : "[name].css",
433
+ runtime: false,
423
434
  }),
424
435
 
425
436
  new CopyPlugin({
@@ -453,8 +464,6 @@ export default async (env) => {
453
464
  manifestFile: config.manifestFile,
454
465
  }),
455
466
 
456
- new WatchRunReporterPlugin(),
457
-
458
467
  new AfterDoneReporterPlugin({
459
468
  echo: env && env.WEBPACK_SERVE,
460
469
  // message:
@@ -469,6 +478,7 @@ export default async (env) => {
469
478
  }),
470
479
  ],
471
480
  optimization: {
481
+ runtimeChunk: "single",
472
482
  splitChunks: {
473
483
  chunks: "all",
474
484
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideasonpurpose/build-tools-wordpress",
3
- "version": "2.2.6",
3
+ "version": "2.3.1",
4
4
  "description": "Build scripts and dependencies for IOP's WordPress development environments.",
5
5
  "homepage": "https://github.com/ideasonpurpose/build-tools-wordpress#readme",
6
6
  "bugs": {