UNPKG

@socket.tech/plugin

Version:
32 lines (30 loc) 789 B
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin"); module.exports = { stories: [ "../src/**/*.stories.mdx", "../src/stories/*.stories.@(js|jsx|ts|tsx)", ], addons: [ "@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions", { name: "@storybook/addon-postcss", options: { cssLoaderOptions: { // When you have splitted your css over multiple files // and use @import('./other-styles.css') importLoaders: 1, }, postcssLoaderOptions: { // When using postCSS 8 implementation: require("postcss"), }, }, }, ], framework: "@storybook/react", resolve: { plugins: [new TsconfigPathsPlugin({})], } };