Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
add proxy to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tokyo committed Feb 28, 2017
1 parent d429209 commit 597c1fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -11,6 +11,15 @@ module.exports = function(_path) {
inline: true,
host: '0.0.0.0',
port: 8080
// // uncomment the following lines if you need to configure a proxy for dev env
// // configure proxy
// proxy: {
// '/api/*': {
// target: 'https://jsonplaceholder.typicode.com/',
// changeOrigin: true,
// // uncomment this if you need to remove the /api prefix from the url
// // pathRewrite: {'^/api': ''},
// }
},
plugins: [
new webpack.HotModuleReplacementPlugin()
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/_config/webpack/global.js
Expand Up @@ -30,9 +30,9 @@ module.exports = function (_path) {
},

// // global dev server configs
// // uncomment the following lines if you need to configure a proxy globaly
// devServer: {
// // configure proxy
// // uncomment the following lines if you need to configure a proxy
// proxy: {
// '/api/*': {
// target: 'https://jsonplaceholder.typicode.com/',
Expand Down

0 comments on commit 597c1fe

Please sign in to comment.