Explorar el Código

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 hace 4 años
padre
commit
8c551ed635
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      webpack.prod.js

+ 4 - 1
webpack.prod.js

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