mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-21 07:22:53 +08:00
33 lines
1 KiB
JavaScript
33 lines
1 KiB
JavaScript
import vue from '@vitejs/plugin-vue';
|
|
import { defineConfig } from 'vite';
|
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
import path from 'path'
|
|
// import { fileURLToPath, URL } from 'url';
|
|
|
|
/**
|
|
* https://vitejs.dev/config/
|
|
* @type {import('vite').UserConfig}
|
|
*/
|
|
export default defineConfig({
|
|
plugins: [tsConfigPaths(), vue(), vueJsx()], // ,
|
|
build: {
|
|
target: 'esnext',
|
|
// 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")
|
|
// '@': fileURLToPath(new URL('./webapp', import.meta.url))
|
|
// "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "webapp"),
|
|
},
|
|
},
|
|
});
|