You've already forked wp-bootstrap
v1.0.1 - Integrate Bootstrap Icons web font
Add bootstrap-icons npm package with SCSS import and font file copy build step. All 2,000+ icons available via CSS classes (bi bi-*) in both frontend and block editor. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
20
CLAUDE.md
20
CLAUDE.md
@@ -34,7 +34,7 @@ This project is proudly **"vibe-coded"** using Claude.AI - the entire codebase w
|
||||
|
||||
**Note for AI Assistants:** Clean this section after the specific features are done or new releases are made. Effective changes are tracked in `CHANGELOG.md`. Do not add completed versions here - document them in the Session History section at the end of this file.
|
||||
|
||||
Current version is **v1.0.0** - Release. See `PLAN.md` for details.
|
||||
Current version is **v1.0.1**. See `PLAN.md` for details.
|
||||
|
||||
## Technical Stack
|
||||
|
||||
@@ -193,6 +193,24 @@ Build steps (in order):
|
||||
|
||||
## Session History
|
||||
|
||||
### Session 9 — v1.0.1 Bootstrap Icons (2026-02-09)
|
||||
|
||||
**Completed:** Bootstrap Icons web font integration via SCSS build pipeline.
|
||||
|
||||
**What was built:**
|
||||
|
||||
- Added `bootstrap-icons` npm dependency (v1.13.1)
|
||||
- Imported Bootstrap Icons SCSS in both `style.scss` and `editor-style.scss`
|
||||
- Added `$bootstrap-icons-font-src` variable override in `_variables.scss` to point `@font-face` at `assets/fonts/`
|
||||
- Added `copy:icons` npm script to copy `.woff`/`.woff2` font files from `node_modules` to `assets/fonts/`
|
||||
- Updated `build` script to include `copy:icons` step
|
||||
|
||||
**Key learnings:**
|
||||
|
||||
- Bootstrap Icons SCSS uses `$bootstrap-icons-font-src` to allow overriding the `@font-face` `src` declaration — set it before the import to control font file paths
|
||||
- The existing `--load-path=node_modules` Sass flag resolves `@import "bootstrap-icons/font/bootstrap-icons"` without any extra configuration
|
||||
- Font files (`.woff2` at 131KB, `.woff` at 176KB) are small enough to serve as web fonts without performance concern
|
||||
|
||||
### Session 8 — v1.0.0 Release (2026-02-08)
|
||||
|
||||
**Completed:** Sidebar widget area registration, Twig widget rendering with fallback, documentation refresh, v1.0.0 release.
|
||||
|
||||
Reference in New Issue
Block a user