@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.
@@ -6,6 +6,7 @@ on:
6
6
 
7
7
  jobs:
8
8
  build:
9
+ # https://github.com/actions/runner-images
9
10
  name: Build Release
10
11
  # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
11
12
  runs-on: ubuntu-24.04
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.0
3
+ #### Version 2.5.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)
@@ -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.0",
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",