your-html-minifier
v0.2.0
Published
your-html-minifier
Downloads
342
Readme
your-html-minifier
npm i your-html-minifier
htmlMinifier(options)
- options <Object> 文档看 https://github.com/kangax/html-minifier#options-quick-reference
压缩 HTML Response 内容,功能和 koajs/html-minifier 相同,且支持 koa 2.x
import htmlMinifier from 'your-html-minifier'
app.use(htmlMinifier({
collapseWhitespace: true,
minifyCSS: true,
minifyJS: true
}))