Fix hot reloading DevTools UI

This commit is contained in:
Dan Abramov 2015-08-13 01:05:32 +03:00
parent 74426b4f8e
commit 52b5439986
2 changed files with 8 additions and 2 deletions

View File

@ -25,6 +25,9 @@ module.exports = {
}, },
extensions: ['', '.js'] extensions: ['', '.js']
}, },
resolveLoader: {
'fallback': path.join(__dirname, 'node_modules')
},
module: { module: {
loaders: [{ loaders: [{
test: /\.js$/, test: /\.js$/,
@ -33,7 +36,7 @@ module.exports = {
include: __dirname include: __dirname
}, { }, {
test: /\.js$/, test: /\.js$/,
loaders: ['babel'], loaders: ['react-hot', 'babel'],
include: path.join(__dirname, '..', '..', 'src') include: path.join(__dirname, '..', '..', 'src')
}] }]
} }

View File

@ -25,6 +25,9 @@ module.exports = {
}, },
extensions: ['', '.js'] extensions: ['', '.js']
}, },
resolveLoader: {
'fallback': path.join(__dirname, 'node_modules')
},
module: { module: {
loaders: [{ loaders: [{
test: /\.js$/, test: /\.js$/,
@ -33,7 +36,7 @@ module.exports = {
include: __dirname include: __dirname
}, { }, {
test: /\.js$/, test: /\.js$/,
loaders: ['babel'], loaders: ['react-hot', 'babel'],
include: path.join(__dirname, '..', '..', 'src') include: path.join(__dirname, '..', '..', 'src')
}, { }, {
test: /\.css?$/, test: /\.css?$/,