2022-03-01 17:42:33 +00:00
|
|
|
const path = require("path");
|
|
|
|
const preprocess = require("svelte-preprocess");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
staticDirs: ["../static", "../pictures"],
|
|
|
|
stories: [
|
|
|
|
"../src/**/*.stories.mdx",
|
|
|
|
"../src/**/*.stories.svelte",
|
|
|
|
"../src/**/stories.svelte",
|
|
|
|
],
|
|
|
|
addons: [
|
|
|
|
"@storybook/addon-links",
|
|
|
|
"@storybook/addon-essentials",
|
|
|
|
"@storybook/addon-svelte-csf",
|
|
|
|
],
|
|
|
|
framework: "@storybook/svelte",
|
|
|
|
svelteOptions: {
|
|
|
|
preprocess: preprocess(),
|
|
|
|
},
|
|
|
|
webpackFinal: async (config) => {
|
|
|
|
return {
|
|
|
|
...config,
|
|
|
|
resolve: {
|
|
|
|
...config.resolve,
|
|
|
|
alias: {
|
|
|
|
...config.resolve?.alias,
|
|
|
|
$app: path.resolve("./fake/app"),
|
|
|
|
"\\$lib": path.resolve(__dirname, "../src/lib/"),
|
|
|
|
$lib: path.resolve(__dirname, "../src/lib/"),
|
2022-03-02 00:14:01 +00:00
|
|
|
"\\$app/env": path.resolve(__dirname, "../fake/app/env.js"),
|
2022-03-01 17:42:33 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|