From 37c64e9a11af6e476138f1ea9653fbe4bf1f8d61 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 29 Sep 2014 01:08:07 -0400 Subject: [PATCH] apparently, the "compress" option doesn't play nice with socket.io, so I'm disabling it --- minifier.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/minifier.js b/minifier.js index 7860792f90..7838f3d2ed 100644 --- a/minifier.js +++ b/minifier.js @@ -14,7 +14,9 @@ var uglifyjs = require('uglify-js'), /* Javascript */ Minifier.js.minify = function (scripts, relativePath, minify, callback) { - var options = {}; + var options = { + compress: false + }; scripts = scripts.filter(function(file) { return fs.existsSync(file); @@ -25,7 +27,6 @@ Minifier.js.minify = function (scripts, relativePath, minify, callback) { options.outSourceMap = 'nodebb.min.js.map'; options.sourceRoot = relativePath; options.mangle = false; - options.compress = false; options.prefix = 1; }