UNPKG

artemis-ui

Version:

a component ui library for react applications

29 lines (25 loc) 889 B
const path = require("path"); module.exports = { stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], addons: [ "@storybook/addon-docs", "@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-a11y", "storybook-addon-designs", ], 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; }, };