Last active
September 28, 2021 03:06
-
-
Save lmartim/37c57d72a1810b4b981ad880a2200eb1 to your computer and use it in GitHub Desktop.
Storybook's main config file.
This file contains hidden or 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
module.exports = { | |
stories: [ | |
"../src/**/*.stories.mdx", | |
"../src/**/*.stories.@(js|jsx|ts|tsx)" | |
], | |
addons: [ | |
"@storybook/addon-links", | |
"@storybook/addon-essentials" | |
], | |
core: { | |
builder: "storybook-builder-vite" | |
}, | |
async viteFinal(config) { | |
config.css = { | |
preprocessorOptions: { | |
scss: { | |
additionalData: ` | |
@import './tokens/build/_variables.scss'; | |
` | |
} | |
} | |
} | |
return config | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment