-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathvite.config.mjs
More file actions
43 lines (42 loc) · 960 Bytes
/
vite.config.mjs
File metadata and controls
43 lines (42 loc) · 960 Bytes
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 { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue2'
import { fileURLToPath, URL } from 'node:url'
import autoprefixer from 'autoprefixer'
import checker from 'vite-plugin-checker'
import bundleAnalyzer from 'rollup-plugin-bundle-analyzer'
export default defineConfig({
base: '/',
plugins: [
vue(),
checker({
vueTsc: true,
eslint: {
lintCommand: 'eslint . --ext .vue,.ts,.js --ignore-path .gitignore',
},
overlay: {
initialIsOpen: 'error',
}
}),
bundleAnalyzer({
analyzerMode: 'static',
reportFilename: 'report.html'
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['mixed-decls', 'color-functions', 'global-builtin', 'import']
}
},
postcss: {
plugins: [
autoprefixer()
]
}
}
})