-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
43 lines (42 loc) · 1.17 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"),
},
},
css: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
});