mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-08-12 12:20:13 +08:00
use defaultConfig.port in dev env instead of hard coded 8000
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ let BowerWebpackPlugin = require('bower-webpack-plugin');
|
|||||||
|
|
||||||
let config = Object.assign({}, baseConfig, {
|
let config = Object.assign({}, baseConfig, {
|
||||||
entry: [
|
entry: [
|
||||||
'webpack-dev-server/client?http://127.0.0.1:8000',
|
'webpack-dev-server/client?http://127.0.0.1:' + defaultSettings.port,
|
||||||
'webpack/hot/only-dev-server',
|
'webpack/hot/only-dev-server',
|
||||||
'./src/index'
|
'./src/index'
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user