Created
May 23, 2015 00:48
-
-
Save joselo/ac67e69d1bcf18bb7967 to your computer and use it in GitHub Desktop.
Proxy webpack api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// package.jon | |
"scripts": { | |
"start": "webpack-dev-server --hot" | |
} | |
// webpack.config.js | |
module.exports = { | |
... | |
devServer: { | |
contentBase: PATHS.app, | |
noInfo: true, // --no-info option | |
hot: true, | |
inline: true, | |
proxy: { | |
"/api/v1/*": "http://localhost:9292" | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment