config for page env

This commit is contained in:
Yanick Champoux 2021-06-13 13:03:52 -04:00
parent c047e5f5a3
commit 22960953fc
3 changed files with 25 additions and 18 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
.DS_Store .DS_Store
node_modules node_modules
/.svelte /.svelte
/build
/functions /functions
.svelte-kit/ .svelte-kit/
.vercel_build_output/ .vercel_build_output/

1
static/.nojekyll Normal file
View File

@ -0,0 +1 @@
nojekyll

View File

@ -1,22 +1,29 @@
import adapter from '@sveltejs/adapter-static'; import adapter from "@sveltejs/adapter-static";
import analyze from 'rollup-plugin-analyzer'; import analyze from "rollup-plugin-analyzer";
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
export default { export default {
kit: { kit: {
// hydrate the <div id="svelte"> element in src/app.html // hydrate the <div id="svelte"> element in src/app.html
target: '#svelte', target: "#svelte",
adapter: adapter(), adapter: adapter({
files: { pages: "docs",
lib: './src', assets: "docs",
assets: './public', }),
}, files: {
vite: { lib: "./src",
build: { assets: "./public",
},
vite: {
build: {
rollupOptions: { rollupOptions: {
plugins: [ analyze() ], plugins: [analyze()],
// external: ['updux','@yanick/updeep'] // external: ['updux','@yanick/updeep']
} },
} },
}}, },
paths: {
base: "/aotds-docks",
},
},
}; };