Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const path = require('path');
- // Export a function. Accept the base config as the only param.
- module.exports = (storybookBaseConfig, configType) => {
- // configType has a value of 'DEVELOPMENT' or 'PRODUCTION'
- // You can change the configuration based on that.
- // 'PRODUCTION' is used when building the static version of storybook.
- // Make whatever fine-grained changes you need
- storybookBaseConfig.module.rules.push({
- test: /.scss$/,
- loaders: ["style-loader", "css-loader", "sass-loader"],
- include: path.resolve(__dirname, '../')
- });
- // Return the altered config
- return storybookBaseConfig;
- };
Add Comment
Please, Sign In to add comment