-
Notifications
You must be signed in to change notification settings - Fork 3
/
vue.config.js
36 lines (34 loc) · 935 Bytes
/
vue.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
/* eslint-disable @typescript-eslint/no-var-requires */
const scriptSetupOptions = {
refTransform: false,
}
/** @type {import('@vue/cli-service').ProjectOptions} */
module.exports = {
publicPath: process.env.PUBLIC_URL,
transpileDependencies: [],
productionSourceMap: process.env.GENERATE_SOURCEMAP === 'true',
lintOnSave: process.env.NODE_ENV !== 'production',
devServer: {
overlay: {
warnings: false,
errors: true,
},
},
configureWebpack: {
plugins: [require('unplugin-vue2-script-setup/webpack')(scriptSetupOptions)],
},
chainWebpack(config) {
// disable type check and let `vue-tsc` handles it
config.plugins.delete('fork-ts-checker')
},
pluginOptions: {
vite: {
plugins: [require('unplugin-vue2-script-setup/vite')(scriptSetupOptions)],
optimizeDeps: {
include: [],
},
disabledTypeChecker: true,
disabledLint: true,
},
},
}