Simple tool to clean and compress HTML files.
HtmlCleanCompress replace EOL (for Window, Linux or Mac formats) and tabs with a white space.
HtmlCleanCompress removes HTML comments in the files ( comment starting with "<--" and ending with "-->)
HtmlCleanCompress removes duplicate white spaces.
HtmlCleanCompress is not an HTML parser. If you have errors in your html, the errors remains.
Better to avoid embedded styles and javascript in the html file.
From the node command line run:
node ./src/index.js --src=PathToTheHtmlSourceFiles --dest=PathToTheCleanedHtmlFiles --clean=true
where PathToTheHtmlSourceFiles is a path to the html source files and PathToTheCleanedHtmlFiles is the path to the folder where the cleaned files are pushed. PathToTheCleanedHtmlFiles must exists and all the files in the folder are deleted when the --clean parameter is true