Generate source map for production build
authorGreg Hurrell <greg@hurrell.net>
Mon, 3 Aug 2015 17:16:23 +0000 (10:16 -0700)
committerGreg Hurrell <greg@hurrell.net>
Mon, 3 Aug 2015 17:16:23 +0000 (10:16 -0700)
So that I can meaningfully profile the production build.

webpack.production.config.js

index 643ac4484f9c9df34cd275803b123e305a6fb90e..9890b551d7e95c005613f10a518b8cf28126b5cb 100644 (file)
@@ -9,6 +9,7 @@ var path = require('path');
 var webpack = require('webpack');
 
 module.exports = {
+  devtool: 'source-map',
   entry: './src/index',
   output: {
     path: path.join(__dirname, 'dist'),