Skip to content

Commit ddd1705

Browse files
committed
fix: css was not included in component
1 parent 96150d1 commit ddd1705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default defineConfig(({ command, mode }) => {
6363
{
6464
name: 'inline-css',
6565
transform(code, id) {
66-
const isCSS = (path: string) => /\.css$/.test(path)
66+
const isCSS = (path: string) => /\.(?:css|scss|sass|postcss)$/.test(path)
6767
if (!isCSS(id)) return
6868

6969
const cssCode = minify(code)

0 commit comments

Comments
 (0)