Storybook and vite
This commit is contained in:
parent
e95e1233ab
commit
a48559e3db
@ -2,7 +2,7 @@ const path = require("path");
|
|||||||
const preprocess = require("svelte-preprocess");
|
const preprocess = require("svelte-preprocess");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// core: { builder: "storybook-builder-vite" },
|
// core: { builder: "storybook-builder-vite" },
|
||||||
staticDirs: ["../static", "../pictures"],
|
staticDirs: ["../static", "../pictures"],
|
||||||
stories: [
|
stories: [
|
||||||
"../src/**/*.stories.mdx",
|
"../src/**/*.stories.mdx",
|
||||||
@ -22,6 +22,8 @@ module.exports = {
|
|||||||
config.resolve.alias.$lib = path.resolve(__dirname, "../src/lib/");
|
config.resolve.alias.$lib = path.resolve(__dirname, "../src/lib/");
|
||||||
config.resolve.alias.$app = path.resolve(__dirname, "../fake/app/");
|
config.resolve.alias.$app = path.resolve(__dirname, "../fake/app/");
|
||||||
|
|
||||||
|
config.resolve.dedupe = ["@storybook/client-api"];
|
||||||
|
|
||||||
// return the customized config
|
// return the customized config
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user