Guest User

Untitled

a guest
Jan 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. const path = require('path');
  2.  
  3. // Export a function. Accept the base config as the only param.
  4. module.exports = (storybookBaseConfig, configType) => {
  5. // configType has a value of 'DEVELOPMENT' or 'PRODUCTION'
  6. // You can change the configuration based on that.
  7. // 'PRODUCTION' is used when building the static version of storybook.
  8.  
  9. // Make whatever fine-grained changes you need
  10. storybookBaseConfig.module.rules.push({
  11. test: /.scss$/,
  12. loaders: ["style-loader", "css-loader", "sass-loader"],
  13. include: path.resolve(__dirname, '../')
  14. });
  15.  
  16. // Return the altered config
  17. return storybookBaseConfig;
  18. };
Add Comment
Please, Sign In to add comment