Skip to content

Commit 52b5439

Browse files
committed
Fix hot reloading DevTools UI
1 parent 74426b4 commit 52b5439

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/counter/webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ module.exports = {
2525
},
2626
extensions: ['', '.js']
2727
},
28+
resolveLoader: {
29+
'fallback': path.join(__dirname, 'node_modules')
30+
},
2831
module: {
2932
loaders: [{
3033
test: /\.js$/,
@@ -33,7 +36,7 @@ module.exports = {
3336
include: __dirname
3437
}, {
3538
test: /\.js$/,
36-
loaders: ['babel'],
39+
loaders: ['react-hot', 'babel'],
3740
include: path.join(__dirname, '..', '..', 'src')
3841
}]
3942
}

examples/todomvc/webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ module.exports = {
2525
},
2626
extensions: ['', '.js']
2727
},
28+
resolveLoader: {
29+
'fallback': path.join(__dirname, 'node_modules')
30+
},
2831
module: {
2932
loaders: [{
3033
test: /\.js$/,
@@ -33,7 +36,7 @@ module.exports = {
3336
include: __dirname
3437
}, {
3538
test: /\.js$/,
36-
loaders: ['babel'],
39+
loaders: ['react-hot', 'babel'],
3740
include: path.join(__dirname, '..', '..', 'src')
3841
}, {
3942
test: /\.css?$/,

0 commit comments

Comments
 (0)