-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathvue.config.js
44 lines (43 loc) · 1.17 KB
/
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
40
41
42
43
44
const path = require('path')
module.exports = {
productionSourceMap: false,
configureWebpack: {
resolve: {
alias: {
Components: path.resolve(__dirname, './src/components/'),
Img: path.resolve(__dirname, './src/assets/img/'),
Css: path.resolve(__dirname, './src/assets/css/'),
Fonts: path.resolve(__dirname, './src/assets/fonts/')
}
}
},
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = 'Robot Framework'
args[0].meta = 'Generic open source automation framework for acceptance testing, acceptance test driven development (ATDD), and robotic process automation (RPA).'
return args
})
config
.plugin('define')
.tap(args => {
args[0] = {
...args[0],
__INTLIFY_PROD_DEVTOOLS__: false
}
return args
})
config
.plugin('preload')
.tap(args => {
args[0].include = 'allAssets'
args[0].as = (entry) => {
if (/\.css$/.test(entry)) return 'style'
if (/\.woff$/.test(entry)) return 'font'
return 'script'
}
return args
})
}
}