Skip to content

Commit 2368ac0

Browse files
committed
Proxy http-server in dev mode
1 parent a6b6e3e commit 2368ac0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.dev.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ module.exports = {
1313
port: 9000,
1414
hot: true,
1515
open: true,
16+
proxy: [{
17+
context: ['/music'],
18+
target: 'http://localhost:8080',
19+
changeOrigin: true,
20+
}],
1621
},
1722
module: {
1823
rules: [

0 commit comments

Comments
 (0)