Skip to content
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

vue-loader strip out html comments in <template> section? #158

Closed
cnweibo opened this issue Aug 29, 2016 · 1 comment
Closed

vue-loader strip out html comments in <template> section? #158

cnweibo opened this issue Aug 29, 2016 · 1 comment

Comments

@cnweibo
Copy link

cnweibo commented Aug 29, 2016

Under dev environment, i'd like to keep the comments information in both and <style> and <script> section in .vue file.
Unfortunately, it seems that all the comments(html,js,css) are stripped out in webpack dev environment.
How can i disable that?
For example, in following del-container.vue file, i add html comments within the root div of the component, when inspecting in chrome dev tool, that comment
<!-- del-container -->
is not available

<template>
    <div :class=" containerClass ">
        <!-- del-container -->
        <slot></slot>
        <span class="m-del-container__close" @click="deleteIt"><span >x</span></span>
    </div>
</template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants