Skip to content

Commit

Permalink
fix: missing root style in scoped css
Browse files Browse the repository at this point in the history
  • Loading branch information
prinsss committed Jan 2, 2024
1 parent 0a28f02 commit b4376ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export default defineConfig({
return selector.replace(/:root/, prefix);
}

if (selector.match(/html/)) {
return selector.replace(/html/, prefix);
}

return prefixedSelector;
},
}),
Expand Down

0 comments on commit b4376ca

Please sign in to comment.