Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Fix a bug of react-hot loader disabled in development
Browse files Browse the repository at this point in the history
  • Loading branch information
Tug committed Sep 27, 2016
1 parent 422403e commit cf53c35
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions webpack.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ var config = merge.smart( baseConfig, {
path.join( __dirname, 'client' )
],

module: {
loaders: [
{
test: /\.jsx?$/,
loaders: [ 'react-hot' ]
}
]
},

node: {
console: false,
process: true,
Expand Down Expand Up @@ -70,10 +79,6 @@ if ( NODE_ENV === 'production' ) {
config = merge.smart( config, {
module: {
loaders: [
{
test: /\.jsx?$/,
loaders: [ 'react-hot' ]
},
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract( {
Expand Down

0 comments on commit cf53c35

Please sign in to comment.