Created
March 19, 2022 09:29
-
-
Save fysherman/5c71cb10de0c0eeaacbef1d509521f48 to your computer and use it in GitHub Desktop.
Vite's global scss variable config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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