michalvankodev-site/svelte.config.cjs

19 lines
404 B
JavaScript
Raw Normal View History

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',
},
}),
}