config proxyTable
parent
8aa589e1f2
commit
8c2ddc63f5
|
@ -27,7 +27,15 @@ module.exports = {
|
||||||
autoOpenBrowser: true,
|
autoOpenBrowser: true,
|
||||||
assetsSubDirectory: 'static',
|
assetsSubDirectory: 'static',
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: '/',
|
||||||
proxyTable: {},
|
proxyTable: {
|
||||||
|
'/api':{
|
||||||
|
target:'http://jsonplaceholder.typicode.com',
|
||||||
|
changeOrigin:true,
|
||||||
|
pathRewrite:{
|
||||||
|
'/api':''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
// CSS Sourcemaps off by default because relative paths are "buggy"
|
// CSS Sourcemaps off by default because relative paths are "buggy"
|
||||||
// with this option, according to the CSS-Loader README
|
// with this option, according to the CSS-Loader README
|
||||||
// (https://github.com/webpack/css-loader#sourcemaps)
|
// (https://github.com/webpack/css-loader#sourcemaps)
|
||||||
|
|
Loading…
Reference in New Issue