tricoteuses-legifrance/svelte.config.js

31 lines
671 B
JavaScript
Raw Normal View History

import adapter from "@sveltejs/adapter-node"
2022-08-09 10:44:30 +02:00
import preprocess from "svelte-preprocess"
/** @type {import('@sveltejs/kit').Config} */
const config = {
2022-08-29 10:24:08 +02:00
package: {
exports: (filePath) => {
return !filePath.startsWith("scripts/") && !filePath.startsWith("server/")
},
files: (filePath) => {
return !filePath.startsWith("scripts/") && !filePath.startsWith("server/")
},
},
2022-08-09 10:44:30 +02:00
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true,
}),
],
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