sveltekit config tweaks for base url
This commit is contained in:
parent
3a4ad998ad
commit
243a494864
@ -43,6 +43,7 @@
|
||||
"rollup-plugin-analyzer": "^4.0.0",
|
||||
"svelte-chota": "^1.8.6",
|
||||
"svelte-knobby": "^0.3.4",
|
||||
"svelte-moveable": "^0.20.0",
|
||||
"ts-action": "^11.0.0",
|
||||
"updux": "link:/home/yanick/work/javascript/updux-js/",
|
||||
"webpack": "5"
|
||||
|
@ -1,18 +1,19 @@
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
import analyze from "rollup-plugin-analyzer";
|
||||
|
||||
const dev = process.env.NODE_ENV === "development";
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
export default {
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
paths: { base: "/aotds-docks" },
|
||||
vite: {
|
||||
build: {
|
||||
rollupOptions: {
|
||||
plugins: [analyze()],
|
||||
// external: ['updux','@yanick/updeep']
|
||||
},
|
||||
},
|
||||
kit: {
|
||||
adapter: adapter({ fallback: "index.html" }),
|
||||
paths: { base: dev ? "" : "/aotds-docks" },
|
||||
vite: {
|
||||
build: {
|
||||
rollupOptions: {
|
||||
plugins: [analyze()],
|
||||
// external: ['updux','@yanick/updeep']
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user