@ideasonpurpose/build-tools-wordpress 2.3.0 → 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 +6 -0
- package/README.md +1 -1
- package/config/webpack.config.js +14 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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
|
+
|
|
7
13
|
#### v2.2.6
|
|
8
14
|
|
|
9
15
|
> 18 October 2025
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ideasonpurpose/build-tools-wordpress
|
|
2
2
|
|
|
3
|
-
#### Version 2.3.
|
|
3
|
+
#### Version 2.3.1
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
|
|
6
6
|
[](https://github.com/ideasonpurpose/build-tools-wordpress#readme)
|
package/config/webpack.config.js
CHANGED
|
@@ -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
|
-
|
|
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: "
|
|
271
|
+
logging: "verbose",
|
|
272
|
+
// logging: "info",
|
|
267
273
|
overlay: {
|
|
268
274
|
errors: true,
|
|
269
275
|
warnings: true,
|
|
@@ -386,10 +392,14 @@ export default async (env) => {
|
|
|
386
392
|
return middlewares;
|
|
387
393
|
},
|
|
388
394
|
|
|
395
|
+
liveReload: true,
|
|
389
396
|
watchFiles: {
|
|
390
397
|
paths: [
|
|
391
398
|
// Watch all PHP, HTML, SVG, and JSON files in the theme directory
|
|
392
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",
|
|
393
403
|
],
|
|
394
404
|
options: {
|
|
395
405
|
ignored: [
|
|
@@ -397,6 +407,7 @@ export default async (env) => {
|
|
|
397
407
|
"**/vendor/**",
|
|
398
408
|
"**/node_modules/**",
|
|
399
409
|
"**/dist/**",
|
|
410
|
+
"!**/dist/**/*.css",
|
|
400
411
|
],
|
|
401
412
|
ignoreInitial: false, // Allow initial file discovery
|
|
402
413
|
ignorePermissionErrors: true,
|
|
@@ -419,6 +430,7 @@ export default async (env) => {
|
|
|
419
430
|
plugins: [
|
|
420
431
|
new MiniCssExtractPlugin({
|
|
421
432
|
filename: isProduction ? "[name]-[contenthash:8].css" : "[name].css",
|
|
433
|
+
runtime: false,
|
|
422
434
|
}),
|
|
423
435
|
|
|
424
436
|
new CopyPlugin({
|
|
@@ -452,8 +464,6 @@ export default async (env) => {
|
|
|
452
464
|
manifestFile: config.manifestFile,
|
|
453
465
|
}),
|
|
454
466
|
|
|
455
|
-
new WatchRunReporterPlugin(),
|
|
456
|
-
|
|
457
467
|
new AfterDoneReporterPlugin({
|
|
458
468
|
echo: env && env.WEBPACK_SERVE,
|
|
459
469
|
// message:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ideasonpurpose/build-tools-wordpress",
|
|
3
|
-
"version": "2.3.
|
|
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": {
|