Files
classquiz-ai/frontend/svelte.config.js
T
2022-07-02 17:20:55 +02:00

39 lines
807 B
JavaScript

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import adapter from '@sveltejs/adapter-node';
import preprocess from 'svelte-preprocess';
import { isoImport } from 'vite-plugin-iso-import';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true
})
],
kit: {
adapter: adapter({
out: 'build',
precompress: true
}),
vite: {
optimizeDeps: {
include: ['swiper']
},
build: {
sourcemap: true
},
plugins: [isoImport()]
}
}
};
export default config;