From cf53c35d9c2bc20ea076d8deffa83974d70b369f Mon Sep 17 00:00:00 2001 From: Tugdual de Kerviler Date: Tue, 27 Sep 2016 15:08:13 +0200 Subject: [PATCH] Fix a bug of react-hot loader disabled in development --- webpack.client.config.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/webpack.client.config.js b/webpack.client.config.js index c851d269..77494ca0 100644 --- a/webpack.client.config.js +++ b/webpack.client.config.js @@ -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, @@ -70,10 +79,6 @@ if ( NODE_ENV === 'production' ) { config = merge.smart( config, { module: { loaders: [ - { - test: /\.jsx?$/, - loaders: [ 'react-hot' ] - }, { test: /\.scss$/, loader: ExtractTextPlugin.extract( {