-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook #133
Comments
bug
|
Storybook 的 SCSS 预设
yarn add -D @storybook/preset-scss css-loader sass sass-loader style-loader
module.exports = {
addons: ['@storybook/preset-scss'],
}; 高级用法
module.exports = {
addons: [
{
name: '@storybook/preset-scss',
options: {
cssLoaderOptions: {
modules: true,
localIdentName: '[name]__[local]--[hash:base64:5]',
}
}
},
// You can add other presets/addons by using the string declaration
'@storybook/preset-typescript',
'@storybook/addon-actions',
]
} |
Storybook 的 less 预设yarn add storybook-preset-less -D
module.exports = {
addons: ['storybook-preset-less'],
}; |
Storybook
在已有项目中安装
命令
示例
The text was updated successfully, but these errors were encountered: