aotds-docks/svelte.config.js

20 lines
497 B
JavaScript
Raw Normal View History

2022-03-01 17:42:33 +00:00
import adapter from "@sveltejs/adapter-static";
import analyze from "rollup-plugin-analyzer";
2021-05-17 13:48:31 +00:00
2022-04-07 00:09:22 +00:00
const dev = process.env.NODE_ENV === "development";
2021-05-17 13:48:31 +00:00
/** @type {import('@sveltejs/kit').Config} */
export default {
2022-04-07 00:09:22 +00:00
kit: {
adapter: adapter({ fallback: "index.html" }),
paths: { base: dev ? "" : "/aotds-docks" },
vite: {
build: {
rollupOptions: {
plugins: [analyze()],
// external: ['updux','@yanick/updeep']
2022-03-01 17:42:33 +00:00
},
2022-04-07 00:09:22 +00:00
},
2022-03-01 17:42:33 +00:00
},
2022-04-07 00:09:22 +00:00
},
2021-05-17 13:48:31 +00:00
};