UNPKG

story-lib

Version:

A template for creating component libraries for react using typescript, scss, and storybook

27 lines (23 loc) 801 B
const path = require("path"); module.exports = { stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], addons: [ "@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-a11y", ], framework: "@storybook/react", webpackFinal: async (config, { 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 config.module.rules.push({ test: /\.scss$/, use: ["style-loader", "css-loader", "sass-loader"], include: path.resolve(__dirname, "../"), }); // Return the altered config return config; }, };