UNPKG

@nile-ui/nile-ui

Version:

Modern and beautiful looking component designs

34 lines (31 loc) 907 B
import type { StorybookConfig } from "@storybook/react-webpack5"; const path = require("path"); const config: StorybookConfig = { stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], addons: [ "@storybook/addon-links", "@storybook/addon-essentials", "@storybook/preset-create-react-app", "@storybook/addon-onboarding", "@storybook/addon-interactions", ], framework: { name: "@storybook/react-webpack5", options: {}, }, docs: { autodocs: "tag", }, staticDirs: ["../public"], webpackFinal: async (config, { configType }) => { // Make whatever fine-grained changes you need config.module?.rules?.push({ test: /\.scss$/, use: ["style-loader", "css-loader", "sass-loader"], include: path.resolve(__dirname, "../src/scss"), }); // Return the altered config return config; } }; export default config;