Enable cheap source-map by default (#977)

Debugging issues in the dashboard is a little frustrating without source maps and the full source map takes awhile to build.

Just enables one of the cheaper source maps by default. It is good enough (tm) for what is there now.
This commit is contained in:
Thomas Rampelberg 2018-05-22 07:39:18 -07:00 committed by GitHub
parent 2baeaacbc8
commit 55d7228959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
/* global require, module, __dirname */
const path = require('path');
module.exports = {
@ -7,7 +9,7 @@ module.exports = {
publicPath: 'dist/',
filename: 'index_bundle.js'
},
// devtool: 'source-map', // uncomment for nicer logging, makes dev slower
devtool: 'cheap-module-source-map',
externals: {
cheerio: 'window',
'react/addons': 'react',