Fix source maps in production

File source was huge because of that
This commit is contained in:
Alex P 2022-09-09 10:28:26 +03:00
parent 9533528c5c
commit a81a2ef7d1
5 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@ const path = require('path');
const isProduction = process.env.NODE_ENV === 'production';
module.exports = {
devtool: 'eval-source-map',
devtool: isProduction ? 'source-map' : 'eval-source-map',
mode: isProduction ? 'production' : 'development',
target: 'web',
entry: {