webpack: disable sourcemaps in production
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/602/head
parent
7111c7c0e9
commit
246aeba379
|
@ -45,4 +45,7 @@ webpackConfig.optimization.minimizer[0] = new TerserPlugin({
|
|||
extractComments: true,
|
||||
});
|
||||
|
||||
// Disable source maps in production
|
||||
webpackConfig.devtool = isDev ? 'cheap-source-map' : false;
|
||||
|
||||
module.exports = webpackConfig;
|
||||
|
|
Loading…
Reference in New Issue