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