-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
54 lines (53 loc) · 1.32 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
45
46
47
48
49
50
51
52
53
54
const webpack = require("webpack");
let { AppServer } = require('./server.js')
module.exports = {
devServer: {
port: 8080,
before: function(app, server, compiler) {
AppServer(app)
},
proxy: {
'/wx/api': {
target: 'http://jorntest.vipgz1.idcfengye.com/',//'http://127.0.0.1:8080',
ws: true,
changeOrigin: true
},
'/test':{
target:'http://easymock.jeemoo.net/mock/5ea6554d9e09c900161da17f/example',//'http://operate.uecchina.com.cn/mock/5e134b35f56a3f7aa9aa04cd/ylzb',
ws: true,
changeOrigin: true
}
}
},
// 选项...
publicPath:"/",
css: {
loaderOptions: {
css: {},
postcss: {
plugins: [
require('postcss-px2rem')({
remUnit: (37.5*2)
})
]
}
}
},
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
jQuery: 'jquery',
$: 'jquery'
})
]
},
transpileDependencies: [],
css: {
loaderOptions: {
css: {
// 这里的选项会传递给 css-loader
importLoaders: 1,
}
}
}
}