posthtml-spaceless
A posthtml plugin remove whitespace between HTML tags
Why?
This tag is based on and compatible with the Twig spaceless
tag, Swig spaceless
tag and Django spaceless
tag.
Install
npm i -D posthtml posthtml-spaceless
Note: This project is compatible with node v4+
Usage
;;; const html = ; ;
Returns the html without whitespace between tags
Example
input.html
Header one two three
output.html
Header onetwothree