2023-11-10 14:05:15 +08:00
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
2024-01-06 09:06:57 +08:00
|
|
|
import path from 'path'
|
2023-11-10 14:05:15 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [tsConfigPaths(), vue(), vueJsx()], // ,
|
|
|
|
build: {
|
|
|
|
target: 'esnext',
|
2024-01-06 09:06:57 +08:00
|
|
|
// rollupOptions: {
|
|
|
|
// output:{
|
|
|
|
// manualChunks(id) {
|
|
|
|
// if (id.includes('node_modules')) {
|
|
|
|
// return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"@": path.resolve(__dirname, "webapp"),
|
|
|
|
},
|
2023-11-10 14:05:15 +08:00
|
|
|
},
|
|
|
|
});
|