A reshape plugin to minify html
Note: This project is in early development, and versioning is a little different. Read this for more details.
npm install reshape-minify -S
Note: This project is compatible with node v6+ only
Add it as a plugin to reshape:
const reshape =const minify =
Options are passed in an object, all are optional.
|collapseWhitespace||Removes all extra whitespace||
|conservativeCollapse||Instead of fully removing excess whitespace, collapses down to a single space||
|aggressiveCollapse||More aggressive whitespace removal, trims all whitespace from beginning and ends of any text||
|removeComments||Removes all comments from the html||
|minifyCss||Minifies any CSS in
|minifyJs||Minifies any JS in
|minifySvg||Minifies any inline svg||
|minifyJson||Minifies any json in