mirror of
https://github.com/detleph/components.git
synced 2026-09-08 23:44:23 +02:00
Additional setup
This commit is contained in:
+8
-1
@@ -1,3 +1,6 @@
|
||||
const { mergeConfig } = require( "vite")
|
||||
const svgr = require("vite-plugin-svgr");
|
||||
|
||||
module.exports = {
|
||||
"stories": [
|
||||
"../src/**/*.stories.mdx",
|
||||
@@ -6,7 +9,8 @@ module.exports = {
|
||||
"addons": [
|
||||
"@storybook/addon-links",
|
||||
"@storybook/addon-essentials",
|
||||
"@storybook/addon-interactions"
|
||||
"@storybook/addon-interactions",
|
||||
"storybook-addon-react-router-v6"
|
||||
],
|
||||
"framework": "@storybook/react",
|
||||
"core": {
|
||||
@@ -14,5 +18,8 @@ module.exports = {
|
||||
},
|
||||
"features": {
|
||||
"storyStoreV7": true
|
||||
},
|
||||
async viteFinal(config, {configType}) {
|
||||
return mergeConfig(config, {plugins: [svgr()]})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user