From 7e05976a93c37f5fb2571a8fa42d1a6b1799b81b Mon Sep 17 00:00:00 2001 From: Max Wu Date: Mon, 24 Oct 2016 00:00:05 +0800 Subject: Revert "html minify in production environment" --- app.js | 13 ------------- package.json | 1 - 2 files changed, 14 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); diff --git a/package.json b/package.json index 2e6377ff..96b9c7e2 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "ejs": "^2.5.2", "engine.io-client": "^1.7.0", "express": ">=4.14", - "express-minify-html": "^0.6.0", "express-session": "^1.14.1", "file-saver": "^1.3.3", "flowchart.js": "^1.6.3", -- cgit v1.2.3