ejs
ejs copied to clipboard
ejs.parse function ??
Hi I'm trying to remove all whitespace and line breaks on my .ejs templates on production.
Does anyone know how to do this the best way ?
I will use a grunt task to minify the .ejs template
@tj
The best way to do this is through an external module, because ejs doesn't know when line breaks are required (e.g. in <pre>) and when they aren't. https://www.npmjs.com/search?q=html+minifier should get you started.