summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorMax Wu2016-10-24 00:00:05 +0800
committerGitHub2016-10-24 00:00:05 +0800
commit7e05976a93c37f5fb2571a8fa42d1a6b1799b81b (patch)
treeaf7a0e253507cafdaa98dcae598dc65c9207e6bb /app.js
parentf35a4167ecff4a707f548e9981555a7777f810a6 (diff)
Revert "html minify in production environment"
Diffstat (limited to 'app.js')
-rw-r--r--app.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/app.js b/app.js
index 327d1f75..0c66cc27 100644
--- a/app.js
+++ b/app.js
@@ -17,7 +17,6 @@ var morgan = require('morgan');
var passportSocketIo = require("passport.socketio");
var helmet = require('helmet');
var i18n = require('i18n');
-var minifyHTML = require('express-minify-html');
//core
var config = require("./lib/config.js");
@@ -57,18 +56,6 @@ app.use(morgan('combined', {
"stream": logger.stream
}));
-if (!config.debug) {
- app.use(minifyHTML({
- override: false,
- htmlMinifier: {
- removeComments: true,
- collapseWhitespace: true,
- collapseBooleanAttributes: true,
- removeAttributeQuotes: true,
- removeEmptyAttributes: true,
- }));
-}
-
//socket io
var io = require('socket.io')(server);