Skip to content

Instantly share code, notes, and snippets.

@lmartim
Last active September 28, 2021 03:06
Show Gist options
  • Save lmartim/37c57d72a1810b4b981ad880a2200eb1 to your computer and use it in GitHub Desktop.
Save lmartim/37c57d72a1810b4b981ad880a2200eb1 to your computer and use it in GitHub Desktop.
Storybook's main config file.
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