tricoteuses-legifrance/svelte.config.js

27 lines
582 B
JavaScript
Raw Normal View History

import adapter from "@sveltejs/adapter-node"
2023-01-31 16:12:09 +01:00
import { vitePreprocess } from "@sveltejs/kit/vite"
/** @type {import('@sveltejs/kit').Config} */
const config = {
2022-08-29 10:24:08 +02:00
package: {
exports: (filePath) => {
return !filePath.startsWith("server/")
2022-08-29 10:24:08 +02:00
},
files: (filePath) => {
return !filePath.startsWith("server/")
2022-08-29 10:24:08 +02:00
},
},
2023-01-31 16:12:09 +01:00
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
2022-08-09 10:44:30 +02:00
// for more information about preprocessors
2023-01-31 16:12:09 +01:00
preprocess: vitePreprocess(),
2022-08-09 10:44:30 +02:00
kit: {
adapter: adapter({
precompress: true,
}),
2022-08-09 10:44:30 +02:00
},
}
2022-08-09 10:44:30 +02:00
export default config