modified config to display svg
This commit is contained in:
parent
1a42b0321d
commit
5b482e5a93
@ -3,6 +3,7 @@ module.exports = {
|
||||
"../src/**/*.stories.mdx",
|
||||
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
||||
],
|
||||
"--staticDirs": ["/src/assets/svg/", "../src/components/icons.tsx"],
|
||||
"addons": [
|
||||
"@storybook/addon-links",
|
||||
"@storybook/addon-essentials",
|
||||
@ -12,5 +13,13 @@ module.exports = {
|
||||
"framework": "@storybook/react",
|
||||
"core": {
|
||||
"builder": "@storybook/builder-webpack5"
|
||||
}
|
||||
},
|
||||
webpackFinal: async (config, {configType}) => {
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
loader: require.resolve('@svgr/webpack'),
|
||||
});
|
||||
return config;
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user