Merge pull request #232 from hackmdio/revert-231-html-minify

Revert "html minify in production environment"
This commit is contained in:
Max Wu 2016-10-24 00:00:58 +08:00 committed by GitHub
commit 2be80a71ea
2 changed files with 0 additions and 14 deletions

13
app.js
View File

@ -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);

View File

@ -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",