#Vite Storybook SCSS compile

3 messages · Page 1 of 1 (latest)

daring sail
#

I am currently using Vue Webpack and Storybook and we are moving to Vite. When I installed Storybook I ran into a problem with the global styles not showing up in my stories. In the previous project you can import main.css into the preview.js but Vite doesn't compile the scss into a css file. Anyone know how I can get around this or if there is a way to compile the scss in the vite.config??

worthy heart
#

You should be able to import the scss file itself into your preview.js file.

#

Vite handles scss without any config needed