You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW I wouldn't mind if stripping comments was the default or if nanohtml just always stripped comments since I never use comments in the browser. I only use HTML comments while reading code.
.. But I recognize that other people might want them in by default / that could maybe lead to less confusion maybe.. so whatever works!
The text was updated successfully, but these errors were encountered:
It looks like we preserve comments when running the browserify transform on the tagged template literals source.
I'd like to remove all comments from production builds in order to:
First things that come to mind:
Potential Solution 1
browserify -t [nanohtml --strip-comments ]
strips commentsFWIW I wouldn't mind if stripping comments was the default or if nanohtml just always stripped comments since I never use comments in the browser. I only use HTML comments while reading code.
.. But I recognize that other people might want them in by default / that could maybe lead to less confusion maybe.. so whatever works!
The text was updated successfully, but these errors were encountered: