2022-09-03 21:32:20 +00:00
|
|
|
import { fileURLToPath, URL } from 'node:url';
|
2022-08-31 12:28:35 +00:00
|
|
|
|
2022-09-03 21:32:20 +00:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
2022-08-31 12:28:35 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2022-09-03 21:32:20 +00:00
|
|
|
plugins: [vue(), vueJsx()],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
build: {
|
2022-10-05 19:34:08 +00:00
|
|
|
sourcemap: 'inline',
|
2022-09-03 21:32:20 +00:00
|
|
|
chunkSizeWarningLimit: 1024 * 1024
|
|
|
|
}
|
2022-08-31 12:28:35 +00:00
|
|
|
});
|