Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reptar/reptar-html-minifier
https://github.com/reptar/reptar-html-minifier
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/reptar/reptar-html-minifier
- Owner: reptar
- Created: 2015-08-30T20:35:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-23T01:25:37.000Z (about 5 years ago)
- Last Synced: 2024-11-11T11:49:27.388Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/reptar-html-minifier
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reptar-html-minifier
A Reptar plugin for [html-minifier](https://github.com/kangax/html-minifier).
### Installation
Add to your `reptar.config.js` file.
```
const reptarHtmlMinifier = require('reptar-html-minifier');module.exports = {
lifecycle: {
didBuild: reptarHtmlMinifier({
collapseBooleanAttributes: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
removeEmptyAttributes: true,
removeRedundantAttributes: true
}),
},
};
```