4 changed files with 4319 additions and 17 deletions
@ -1,27 +1,30 @@
|
||||
import preprocess from 'svelte-preprocess'; |
||||
import staticAdapter from '@sveltejs/adapter-static'; |
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */ |
||||
import preprocess from "svelte-preprocess"; |
||||
import adapterStatic from '@sveltejs/adapter-static'; |
||||
|
||||
const config = { |
||||
kit: { |
||||
// hydrate the <div id="svelte"> element in src/app.html
|
||||
adapter: staticAdapter(), |
||||
adapter: adapterStatic({ |
||||
// default options are shown
|
||||
pages: 'build', |
||||
assets: 'build', |
||||
fallback: null, |
||||
precompress: false |
||||
}), |
||||
trailingSlash: 'always', |
||||
prerender: { |
||||
// This can be false if you're using a fallback (i.e. SPA mode)
|
||||
default: true |
||||
}, |
||||
files: { |
||||
assets: 'static' |
||||
}, |
||||
paths: { |
||||
base: '/dashboard', |
||||
}, |
||||
} |
||||
}, |
||||
|
||||
preprocess: [ |
||||
preprocess({ |
||||
postcss: true |
||||
}) |
||||
] |
||||
], |
||||
}; |
||||
|
||||
export default config; |
||||
|
Loading…
Reference in new issue