Skip to content

Instantly share code, notes, and snippets.

@iamparthaonline
Created March 20, 2022 15:27
Show Gist options
  • Select an option

  • Save iamparthaonline/e0a47208873d4840a26d8c2cfde7f98f to your computer and use it in GitHub Desktop.

Select an option

Save iamparthaonline/e0a47208873d4840a26d8c2cfde7f98f to your computer and use it in GitHub Desktop.
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