proxy example

This commit is contained in:
zuiidea
2017-06-13 20:30:24 +08:00
parent 81801983a6
commit 04b147d33f
+13
View File
@@ -9,6 +9,19 @@ export default {
entry: 'src/index.js',
svgSpriteLoaderDirs: svgSpriteDirs,
"theme": "./theme.config.js",
// 接口代理示例
// "proxy": {
// "/api/v1": {
// "target": "http://api.zuiidea.com",
// "changeOrigin": true,
// "pathRewrite": { "^/api/v1" : "/v1" }
// },
// "/api/v2": {
// "target": "http://192.168.0.110",
// "changeOrigin": true,
// "pathRewrite": { "^/api/v2" : "/api/v2" }
// }
// },
"env": {
"development": {
"extraBabelPlugins": [