aotds-docks/svelte.config.js

25 lines
634 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: {
2022-04-17 16:59:37 +00:00
define: {
"import.meta.env.PACKAGE_VERSION": JSON.stringify(
process.env.npm_package_version
),
},
2022-04-07 00:09:22 +00:00
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
};