mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Revert "html minify in production environment"
This commit is contained in:
parent
f35a4167ec
commit
7e05976a93
2 changed files with 0 additions and 14 deletions
13
app.js
13
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue