tricoteuses-legifrance/svelte.config.js

26 lines
582 B
JavaScript

import adapter from "@sveltejs/adapter-node"
import { vitePreprocess } from "@sveltejs/kit/vite"
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
precompress: true,
}),
},
package: {
exports: (filePath) => {
return !filePath.startsWith("server/")
},
files: (filePath) => {
return !filePath.startsWith("server/")
},
},
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
}
export default config