@ideasonpurpose/build-tools-wordpress 2.5.0 → 2.5.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/.github/workflows/release-from-version-tag.yml +1 -0
- package/CHANGELOG.md +8 -0
- package/README.md +13 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ 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.5.0
|
|
8
|
+
|
|
9
|
+
> 7 March 2026
|
|
10
|
+
|
|
11
|
+
- bump deps
|
|
12
|
+
- beginning of typing, some cleanup
|
|
13
|
+
- inline SVGs in SCSS files by default
|
|
14
|
+
|
|
7
15
|
#### v2.4.2
|
|
8
16
|
|
|
9
17
|
> 22 December 2025
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ideasonpurpose/build-tools-wordpress
|
|
2
2
|
|
|
3
|
-
#### Version 2.5.
|
|
3
|
+
#### Version 2.5.1
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
|
|
6
6
|
[](https://github.com/ideasonpurpose/build-tools-wordpress#readme)
|
|
@@ -29,6 +29,18 @@ Each project may optionally include an **ideasonpurpose.config.js** file in the
|
|
|
29
29
|
|
|
30
30
|
-->
|
|
31
31
|
|
|
32
|
+
## SVG Processing
|
|
33
|
+
|
|
34
|
+
Webpack handles SVG files differently based on import context:
|
|
35
|
+
|
|
36
|
+
- **In SCSS files**: SVGs referenced via `url('file.svg')` are inlined as data URIs if under 4KB, otherwise emitted as separate files in the output directory.
|
|
37
|
+
|
|
38
|
+
- **In JS/TSX files**:
|
|
39
|
+
- With `?url` query (e.g., `import svg from 'file.svg?url'`): Treated as assets, inlined as data URIs if under 4KB, else files.
|
|
40
|
+
- Without `?url`: Converted to React components using `@svgr/webpack` for direct JSX usage.
|
|
41
|
+
|
|
42
|
+
Data URIs are generated as `data:image/svg+xml,<url-encoded-content>` using more efficient URL-encoding, not base64.
|
|
43
|
+
|
|
32
44
|
## Local Development
|
|
33
45
|
|
|
34
46
|
Because this project makes use of bin scripts, conventional `npm link` workflows won't work correctly. To work on this code in a development project, change the project's package.json to install from a local file path, probably something like this:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ideasonpurpose/build-tools-wordpress",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.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": {
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"pretty-hrtime": "^1.0.3",
|
|
78
78
|
"read-package-up": "^12.0.0",
|
|
79
79
|
"replacestream": "^4.0.3",
|
|
80
|
+
"rimraf": "^6.1.3",
|
|
80
81
|
"sass-embedded": "^1.97.3",
|
|
81
82
|
"sass-loader": "^16.0.7",
|
|
82
83
|
"semver": "^7.7.4",
|