Updating webpack configuration for development (#3043)

Co-authored-by: Opender Singh <opender.singh@konghq.com>
This commit is contained in:
Giuseppe BandOpender Singh authored and GitHub committed 2021-02-04 10:29:15 +13:00
1 parent 4f062dbb28
commit c06b504a12
1 file changed
+3 -2
@@ -39,12 +39,13 @@ module.exports = {
// This is needed for source-maps to resolve correctly
contentBase: '/',
},
optimization: {
noEmitOnErrors: true
},
plugins: [
...baseConfig.plugins,
new webpack.LoaderOptionsPlugin({ debug: true }), // Legacy global loader option
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
new webpack.NamedModulesPlugin(),
new webpack.DefinePlugin({
__DEV__: true,
'process.env.NODE_ENV': JSON.stringify('development'),