generate source map files in production build

This commit is contained in:
nklhrstv 2021-11-01 18:22:05 +02:00
parent acbaf43cfc
commit 0ea77ede67

View file

@ -14,6 +14,7 @@ const COMMIT_HASH = execSync('git rev-parse HEAD').toString().trim();
module.exports = (env, argv) => ({
mode: argv.mode,
devtool: argv.mode === 'production' ? 'source-map' : 'eval-source-map',
entry: './src/index.js',
output: {
path: path.join(__dirname, 'build'),