소스 검색

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 4 년 전
부모
커밋
8c551ed635
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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',
+})