Skip to content

Commit

Permalink
config proxyTable
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-xin committed Mar 4, 2017
1 parent 8aa589e commit 8c2ddc6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/index.js
Expand Up @@ -27,7 +27,15 @@ module.exports = {
autoOpenBrowser: true,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
proxyTable: {
'/api':{
target:'http://jsonplaceholder.typicode.com',
changeOrigin:true,
pathRewrite:{
'/api':''
}
}
},
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
Expand Down

0 comments on commit 8c2ddc6

Please sign in to comment.