Files
skeleton/svelte.config.js
2022-10-25 12:38:05 +08:00

26 lines
512 B
JavaScript

import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
/** @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()
},
package: {
// strip test files from packaging
files: (filepath) => {
return filepath.indexOf('test') == -1 ? true : false;
}
}
};
export default config;