-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
vitejs/vite
#10514Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
What version of astro are you using?
latest (stackblitz starter)
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
npm
What operating system are you using?
macOS
Describe the Bug
Adding this to the stackblitz starter:
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
vite: {
css: {
modules: {
generateScopedName: 'custom__[hash:base64:5]',
},
},
},
});We get the new classes:
<h1 class="custom__TuMzL astro-JCQVOAF3">
HELLO, this should be red
...
</h1>But CSS isn't correctly associated anymore, it looks like it is just not inserted in the <head/> at all.
remove generateScopedName, and everything get back to normal, the text is red.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)