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
Is your feature request related to a problem? Please describe.
Removing all comments in HTML files is a bit heavy-handed.
I was trying to port an application that makes uses of Knockout.js to Vite, which uses comments for templating.
In this specific instance, removing <!-- ko: ... --> and <!-- /ko --> comments results in a broken application.
Describe the solution you'd like
An option to configure the regex used to strip comments would be nice, with maybe false meaning don't strip comments at all.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Removing all comments in HTML files is a bit heavy-handed.
I was trying to port an application that makes uses of Knockout.js to Vite, which uses comments for templating.
In this specific instance, removing
<!-- ko: ... -->
and<!-- /ko -->
comments results in a broken application.Describe the solution you'd like
An option to configure the regex used to strip comments would be nice, with maybe
false
meaning don't strip comments at all.The text was updated successfully, but these errors were encountered: