-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ability to remove or modify css class name "svelte-" prefix #2900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is not. #570 has been left open until this is supported. See also this comment. |
don't quite understand how to use example showed in #570 with Webpack. |
You'd pass it the same way you pass any options to svelte-loader - as an |
Use svelte csshash compiler options, just if someone still need it. |
adding to the above comment, modify const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter()
},
compilerOptions: {
cssHash: ({ hash, css }) => `your-custom-prefix-${hash(css)}`
}
} took me a few minutes to figure it out, thought it might be helpful to others |
Is there any way to remove or modify css class name "svelte-" prefix?
The text was updated successfully, but these errors were encountered: