build: add Wrangler text rule for CSS imports

Add [[rules]] type = "Text" globs = ["**/*.css"] to wrangler-example.toml
so Wrangler bundles .css files as raw text strings importable in TypeScript.
Add src/types/css.d.ts to provide the module declaration for `import css from "*.css"`.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
Julien HerrandClaude Sonnet 4.6 committed 2026-05-22 15:43:49 +02:00
1 parent d64f703820
commit 5d75682702
8 files changed
+9 -1463

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
declare module "*.css" {
const content: string;
export default content;
}