aotds-docks/.vitebook/config.js

32 lines
888 B
JavaScript
Raw Normal View History

2022-03-01 17:42:33 +00:00
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { clientPlugin, defineConfig } from "@vitebook/client/node";
import { defaultThemePlugin } from "@vitebook/theme-default/node";
import preprocess from "svelte-preprocess";
2022-02-28 19:50:35 +00:00
export default defineConfig({
2022-03-01 17:42:33 +00:00
include: ["src/**/*.story.svelte"],
2022-02-28 19:50:35 +00:00
alias: {
2022-03-01 17:42:33 +00:00
$app: "/node_modules/@sveltejs/kit/assets/app",
$lib: "/src/lib",
2022-02-28 19:50:35 +00:00
},
plugins: [
2022-03-01 17:42:33 +00:00
clientPlugin({ appFile: "App.svelte" }),
2022-02-28 19:50:35 +00:00
defaultThemePlugin(),
svelte({
compilerOptions: {
2022-03-01 17:42:33 +00:00
hydratable: true,
2022-02-28 19:50:35 +00:00
},
2022-03-01 17:42:33 +00:00
extensions: [".svelte"],
2022-02-28 19:50:35 +00:00
// Consult https://github.com/sveltejs/svelte-preprocess for more information
// about preprocessors.
preprocess: preprocess(),
}),
],
site: {
2022-03-01 17:42:33 +00:00
title: "",
description: "",
2022-02-28 19:50:35 +00:00
/** @type {(import('@vitebook/theme-default/node').DefaultThemeConfig} */
theme: {},
},
});