-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvue.config.js
45 lines (43 loc) · 967 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
40
41
42
43
44
45
/*
* @Description:
* @Author: Benny
* @Date: 2019-08-25 11:12:55
* @LastEditTime: 2019-08-26 10:42:47
*/
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
baseUrl: 'vue-draggable-layout',
productionSourceMap: false,
publicPath: './',
configureWebpack: config => {
devtool: 'source-map'
let plugins = [
new UglifyJsPlugin({
uglifyOptions: {
warnings: false,
compress: {
drop_debugger: false,
drop_console: true,
},
},
sourceMap: false,
parallel: true,
})
]
if (process.env.NODE_ENV !== 'development') {
config.plugins = [...config.plugins, ...plugins]
}
},
devServer:{
proxy:{
'/api': {
target: 'http://app.workiee.com/ptExt/fzy/diy/webApi',
secure: true,
changeOrigin: true,
pathRewrite: {
'/api': ''
}
}
}
}
}