-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
40 lines (39 loc) · 890 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
37
38
39
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-auto-import/webpack')({
imports: [
// presets
'vue',
'vue-router',
'@vueuse/core'
],
eslintrc: {
enabled: true,
filepath: './.eslintrc-auto-import.json',
globalsPropValue: true,
},
}),
require('unplugin-vue-components/webpack')({
// dts: true,
include: [/\.vue$/, /\.vue\?vue/],
resolvers: [
(name) => {
if (name.startsWith('Ion')) {
return {
name,
from: '@ionic/vue',
}
}
if (name.endsWith('Outline')) {
return {
name,
from: 'ionicons/icons',
}
}
},
],
})
]
}
}