Parcourir la source

Add high quality source maps to production builds

This will give better call stacks when throwing errors, thus making it
easier to identify production build errors.
Sergiu Miclea il y a 4 ans
Parent
commit
8c551ed635
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      webpack.prod.js

+ 4 - 1
webpack.prod.js

@@ -1,4 +1,7 @@
 const merge = require('webpack-merge')
 const common = require('./webpack.common')
 
-module.exports = merge(common, { mode: 'production' })
+module.exports = merge(common, {
+  mode: 'production',
+  devtool: 'source-map',
+})