Skip to content

Commit eb0050d

Browse files
DrewAPictureclaude
andcommitted
Document asset minification workflow in agent docs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6a6cfa7 commit eb0050d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.agent/dev-workflow.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@
1313
- Style checks: `./vendor/bin/pint --test`
1414
- Auto-fix style (when needed): `./vendor/bin/pint`
1515

16+
## Asset Minification
17+
18+
Minified assets are committed to the repository and must be regenerated whenever source assets change.
19+
20+
Run the minifier:
21+
22+
```
23+
composer minify
24+
```
25+
26+
Source → output mappings:
27+
28+
| Source | Output |
29+
|---|---|
30+
| `src/assets/css/debug-bar-console.css` | `assets/css/debug-bar-console.min.css` |
31+
| `assets/css/iframe.css` | `assets/css/iframe.min.css` |
32+
| `src/assets/js/debug-bar-console.js` | `assets/js/debug-bar-console.min.js` |
33+
34+
The CodeMirror files under `src/assets/codemirror/` are third-party and loaded as-is — do not minify them.
35+
36+
The script lives in `bin/minify.php` and uses `matthiasmullie/minify`. The `bin/` directory is excluded from release packages via `.gitattributes`.
37+
1638
## Standard Change Flow
1739

1840
1. Make focused changes to source/tests/docs.

0 commit comments

Comments
 (0)