Skip to content

Commit 0f13fc4

Browse files
committed
fix hot loading
1 parent 33d8ecb commit 0f13fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ webpackConfig.module.loaders[0] = {
1616
]
1717
}
1818

19+
if (process.argv[1].indexOf('webpack-dev-server') !== -1) {
20+
webpackConfig.module.loaders[0].loaders.unshift('react-hot')
21+
}
22+
1923
module.exports = webpackConfig;

0 commit comments

Comments
 (0)