-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support comment option in template #897
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/ping @yyx990803
Changed the attribute to |
Nice. This hasn't been added to the documentation yet as far as I can tell? Need assistance? |
It would be useful to add it to the documentation. |
Is this feature available on vue-loader today? (I'm using 16.1.2) I've been experiencing issues with HTML comments being stripped out from single file components, but only in the production build. I'm still not sure if it's a vue-loader specific behaviour, or something else in my webpack config, but this thread seems to indicate that I can control this by placing a "comments" attribute in the template tag as so: |
add a keyword
comment
to support allow keep comments in sfc: