Skip to content

Commit b4fb5e3

Browse files
committed
Force inline CSS with a Vite plugin
1 parent 5ee2d47 commit b4fb5e3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/tailwindcss-language-server/vitest.config.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,16 @@ export default defineConfig({
77
css: true,
88
},
99

10-
plugins: [tsconfigPaths()],
10+
plugins: [
11+
tsconfigPaths(),
12+
{
13+
name: 'force-inline-css',
14+
enforce: 'pre',
15+
resolveId(id) {
16+
if (!id.includes('index.css')) return
17+
if (id.includes('?raw')) return
18+
return this.resolve(`${id}?raw`)
19+
},
20+
},
21+
],
1122
})

0 commit comments

Comments
 (0)