webpack: disable sourcemaps in production

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/602/head
Varun Patil 2023-04-20 23:07:24 -07:00
parent 7111c7c0e9
commit 246aeba379
1 changed files with 3 additions and 0 deletions

View File

@ -45,4 +45,7 @@ webpackConfig.optimization.minimizer[0] = new TerserPlugin({
extractComments: true, extractComments: true,
}); });
// Disable source maps in production
webpackConfig.devtool = isDev ? 'cheap-source-map' : false;
module.exports = webpackConfig; module.exports = webpackConfig;