Skip to content

🍕 Add scoped Vite CSS + --only targeted builds#248

Merged
jjpaulino merged 3 commits into
masterfrom
jordan/vite-css-sites-targeting
May 7, 2026
Merged

🍕 Add scoped Vite CSS + --only targeted builds#248
jjpaulino merged 3 commits into
masterfrom
jordan/vite-css-sites-targeting

Conversation

@jjpaulino
Copy link
Copy Markdown
Member

@jjpaulino jjpaulino commented May 7, 2026

Summary

  • add CLAYCLI_VITE_CSS_SITES support so full Vite CSS builds can target selected styleguides while always including _default
  • add clay vite --only to target specific build steps (js, styles, fonts, templates, vendor, media) for faster local rebuild loops
  • ensure template-only builds still run media first so SVG/template reads keep working, and validate invalid --only values in the CLI
  • expand Vite script tests to cover selective step execution and template+media dependency behavior

Test plan

  • npm test

Made with Cursor

@coveralls
Copy link
Copy Markdown

coveralls commented May 7, 2026

Coverage Status

coverage: 86.85% (+0.1%) from 86.718% — jordan/vite-css-sites-targeting into master

This expands local Vite optimization controls by combining CLAYCLI_VITE_CSS_SITES with a new --only selector for targeted js/styles/fonts/templates/vendor/media rebuilds.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jjpaulino jjpaulino force-pushed the jordan/vite-css-sites-targeting branch from cae9b54 to 5326226 Compare May 7, 2026 03:03
@jjpaulino jjpaulino changed the title 🍕 Add Vite CSS site targeting flag 🍕 Add scoped Vite CSS + --only targeted builds May 7, 2026
This documents CLAYCLI_VITE_CSS_SITES and clay vite --only usage, corrects stale kilnSplit guidance, and refreshes code references so rollout guidance stays accurate.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jjpaulino jjpaulino self-assigned this May 7, 2026
This documents non-obvious --only normalization and media/template ordering rules so future changes preserve rollout-safe behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jjpaulino jjpaulino merged commit 06888ac into master May 7, 2026
6 checks passed
@jjpaulino jjpaulino deleted the jordan/vite-css-sites-targeting branch May 7, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants