This repository has been archived by the owner on May 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
64 lines (62 loc) · 1.58 KB
/
vite.config.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { URL, fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import pluginPurgeCss from '@mojojoejo/vite-plugin-purgecss'
import vue from '@vitejs/plugin-vue'
import { PrimeVueResolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
import VueDevTools from 'vite-plugin-vue-devtools'
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 5175,
strictPort: true
},
plugins: [
vue(),
VueDevTools(),
pluginPurgeCss({
variables: true
}),
Components({
resolvers: [PrimeVueResolver()]
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
build: {
sourcemap: false,
target: 'es2017',
assetsInlineLimit: 0,
// minify: 'terser',
// terserOptions: {
// compress: {
// drop_console: true,
// },
// format: {
// comments: false,
// },
// },
rollupOptions: {
// @see https://rollupjs.org/guide/en/#outputmanualchunks
// output: {
// manualChunks: {
// 'group-news': [
// './src/views/home/NewsItem.vue',
// './src/views/home/SingleNewsView.vue'
// ],
// 'group-teams': [
// './src/views/team/TeamsView.vue',
// './src/views/team/TeamView.vue'
// ],
// 'group-tournaments': [
// './src/views/tournament/TournamentsView.vue',
// './src/views/tournament/TournamentView.vue'
// ]
// }
// }
}
}
})