client/build: enable source maps for debug builds

This commit is contained in:
rr- 2016-04-07 22:27:40 +02:00
parent fe5946b4b0
commit e0516af111
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ function bundleJs(config) {
const uglifyjs = require('uglify-js');
glob('./js/**/*.js', {}, function(er, files) {
const outputFile = fs.createWriteStream('./public/bundle.min.js');
browserify().add(files).bundle().pipe(outputFile);
browserify({debug: config.debug}).add(files).bundle().pipe(outputFile);
outputFile.on('finish', function() {
if (!config.debug) {
const result = uglifyjs.minify('./public/bundle.min.js');