2022-08-09 11:15:42 +02:00
|
|
|
import adapter from "@sveltejs/adapter-node"
|
2022-08-09 10:44:30 +02:00
|
|
|
import preprocess from "svelte-preprocess"
|
2022-08-09 10:21:38 +02:00
|
|
|
|
|
|
|
/** @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:21:38 +02:00
|
|
|
|
2022-08-09 10:44:30 +02:00
|
|
|
kit: {
|
2022-08-09 11:15:42 +02:00
|
|
|
adapter: adapter({
|
|
|
|
precompress: true,
|
|
|
|
}),
|
2022-08-09 10:44:30 +02:00
|
|
|
},
|
|
|
|
}
|
2022-08-09 10:21:38 +02:00
|
|
|
|
2022-08-09 10:44:30 +02:00
|
|
|
export default config
|