Skip to content

Instantly share code, notes, and snippets.

@fysherman
Created March 19, 2022 09:29
Show Gist options
  • Save fysherman/5c71cb10de0c0eeaacbef1d509521f48 to your computer and use it in GitHub Desktop.
Save fysherman/5c71cb10de0c0eeaacbef1d509521f48 to your computer and use it in GitHub Desktop.
Vite's global scss variable config
export default {
css: {
preprocessorOptions: {
scss: {
// example : additionalData: `@import "./src/design/styles/variables";`
// dont need include file extend .scss
additionalData: `@import "./src/path-to-scss-variables";`
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment