2021-04-24 18:24:17 +02:00
|
|
|
const adapterStatic = require('@sveltejs/adapter-static')
|
|
|
|
const sveltePreprocess = require('svelte-preprocess')
|
|
|
|
|
|
|
|
const mode = process.env.NODE_ENV
|
|
|
|
const dev = mode === 'development'
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
module.exports = {
|
|
|
|
kit: {
|
|
|
|
adapter: adapterStatic(),
|
|
|
|
},
|
|
|
|
preprocess: sveltePreprocess({
|
|
|
|
sourceMap: dev,
|
|
|
|
defaults: {
|
|
|
|
script: 'typescript',
|
2021-04-28 12:22:44 +02:00
|
|
|
style: 'less',
|
2021-04-24 18:24:17 +02:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
}
|