Storybook and vite

This commit is contained in:
Yanick Champoux 2022-03-22 17:39:10 -04:00
parent e95e1233ab
commit a48559e3db

View File

@ -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;
}, },