Created
March 20, 2022 15:27
-
-
Save iamparthaonline/e0a47208873d4840a26d8c2cfde7f98f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| module.exports = { | |
| "stories": [ | |
| "../.stories/**/*.stories.mdx", | |
| "../.stories/**/*.stories.@(js|jsx|ts|tsx)" | |
| ], | |
| "addons": [ | |
| "@storybook/addon-links", | |
| "@storybook/addon-essentials", | |
| "storybook-addon-pseudo-states", | |
| "@storybook/addon-storysource", | |
| "storybook-source-code-addon" | |
| ], | |
| "framework": "@storybook/vue", | |
| staticDirs: ['../public'], | |
| 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, '../'), | |
| }); | |
| config.module.rules.push( | |
| { | |
| test: /\.(jpe?g|png|gif|svg)$/i, | |
| use: [ | |
| 'url-loader?limit=10000', | |
| 'img-loader' | |
| ] | |
| } | |
| ); | |
| // Return the altered config | |
| return config; | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment