src/defaults/project_config_factory.js in hauler-0.2.0 vs src/defaults/project_config_factory.js in hauler-0.3.0

- old
+ new

@@ -9,19 +9,18 @@ function getPlugins(env: string) { let plugins = [ new webpack.ProvidePlugin({ fetch: 'exports?self.fetch!whatwg-fetch' }), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(env) } }), new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor', children: true, minChunks: 2, - async: true, }), ]; if (env === 'development') { plugins = plugins.concat([ + new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin(), ]); } if (env === 'production') { @@ -77,9 +76,11 @@ sassLoader.loader = ExtractTextPlugin.extract( 'style', sassLoader.loader.replace('style!', '') ); + } else { + javascriptLoader.query.presets = javascriptLoader.query.presets.concat(['react-hmre']); } const appendPlugins = []; const plugins = getPlugins(env); const prependPlugins = [];