Files
skeleton/svelte.config.js

31 lines
720 B
JavaScript

import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
vitePreprocess({
postcss: true
})
],
kit: {
adapter: adapter(),
// https://kit.svelte.dev/docs/configuration#alias
alias: {
'@skeletonlabs/skeleton': path.resolve('./src/lib/index.ts'),
$docs: path.resolve('./src/docs')
}
},
package: {
// strip test files from packaging
files: (filepath) => {
return filepath.indexOf('test') == -1 ? true : false;
}
}
};
export default config;