From e0516af111c7b4e774b88634ae2be7f99c50afc2 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 7 Apr 2016 22:27:40 +0200 Subject: [PATCH] client/build: enable source maps for debug builds --- client/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/build.js b/client/build.js index efbe649..fa3fccf 100644 --- a/client/build.js +++ b/client/build.js @@ -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');