Skip to content

Commit

Permalink
fix webpack-dev-server/client script
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcguinness committed May 16, 2017
1 parent d20bba0 commit 56a9a82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/availity-workflow-react/package.json
Expand Up @@ -49,6 +49,7 @@
"url-loader": "^0.5.8",
"webpack": "^2.5.1",
"webpack-bundle-analyzer": "^2.7.0",
"webpack-dev-server": "2.4.5",
"webpack-notifier": "^1.5.0",
"webpack-sources": "^0.2.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/availity-workflow-react/webpack.config.js
Expand Up @@ -18,13 +18,13 @@ const babelrcExists = exists(babelrcPath);

const indexHotLoader = [
'react-hot-loader/patch', // Patches React.createElement in dev
`webpack-dev-server/client?http://${settings.host}:${settings.port()}`, // Enables websocket
'webpack/hot/only-dev-server', // performs HMR in brwoser
`webpack-dev-server/client?http://${settings.host()}:${settings.port()}`, // Enables websocket for updates
'webpack/hot/only-dev-server', // performs HMR in browser
'./index.js'
];

const indexHot = [
`webpack-dev-server/client?http://${settings.host}:${settings.port()}`, // Enables websocket
`webpack-dev-server/client?http://${settings.host()}:${settings.port()}`, // Enables websocket for updates
'webpack/hot/only-dev-server', // performs HMR in brwoser
'./index.js'
];
Expand Down

0 comments on commit 56a9a82

Please sign in to comment.