2022-07-13 16:07:05 +00:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
import sveltePreprocess from 'svelte-preprocess'
|
2022-08-26 20:26:48 +00:00
|
|
|
import path from 'path'
|
2022-07-13 16:07:05 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2022-08-26 20:26:48 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
$lib: path.resolve(__dirname, 'src', 'lib'),
|
|
|
|
},
|
|
|
|
},
|
2022-07-13 16:07:05 +00:00
|
|
|
plugins: [
|
|
|
|
svelte({
|
|
|
|
preprocess: sveltePreprocess({
|
|
|
|
scss: true,
|
2022-08-26 20:26:48 +00:00
|
|
|
postcss: true,
|
|
|
|
}),
|
|
|
|
}),
|
2022-07-13 16:07:05 +00:00
|
|
|
],
|
|
|
|
build: {
|
|
|
|
rollupOptions: {
|
2022-08-26 20:26:48 +00:00
|
|
|
output: { entryFileNames: 'assets/[name].js' },
|
|
|
|
},
|
|
|
|
},
|
2022-07-13 16:07:05 +00:00
|
|
|
})
|