Luke Childs
8 years ago
3 changed files with 22 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||
|
const minify = require('express-minify'); |
||||
|
const minifyHTML = require('express-minify-html'); |
||||
|
|
||||
|
module.exports = [ |
||||
|
minify(), |
||||
|
minifyHTML({ |
||||
|
htmlMinifier: { |
||||
|
removeComments: true, |
||||
|
collapseWhitespace: true, |
||||
|
collapseBooleanAttributes: true, |
||||
|
removeAttributeQuotes: true, |
||||
|
removeEmptyAttributes: true, |
||||
|
removeOptionalTags: true |
||||
|
} |
||||
|
}) |
||||
|
]; |
Loading…
Reference in new issue