Select Git revision
conditions-d-utilisation-openleximpact.tsx
-
Loïc Poullain authoredLoïc Poullain authored
svelte.config.js 1.05 KiB
import node from "@sveltejs/adapter-node"
import preprocess from "svelte-preprocess"
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// By default, `npm run build` will create a standard Node app.
// You can create optimized builds for different platforms by
// specifying a different adapter
adapter: node({
precompress: true,
}),
// hydrate the <div id="svelte"> element in src/app.html
target: "#svelte",
vite: {
build: {
// Increase size of chunks to 3 MB, to be able to import
// JSON files extracted from OpenFisca country package.
chunkSizeWarningLimit: 3072,
},
optimizeDeps: {
// See https://svelte-modals.mattjennings.io/
// and https://github.com/sveltejs/vite-plugin-svelte/issues/124.
exclude: ["svelte-modals"],
},
},
},
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true,
}),
],
}
export default config