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

how to ignore self tags in SFC build #1595

Open
MrGaoGang opened this issue Sep 27, 2019 · 4 comments
Open

how to ignore self tags in SFC build #1595

MrGaoGang opened this issue Sep 27, 2019 · 4 comments

Comments

@MrGaoGang
Copy link

What problem does this feature solve?

hello, i have i structure in my SFC, such as:

<template>
  <button :style="styles" @click="handleClick">
  </button>
</template>

<script>

</script>

<docs>
   This button is amazing, use it responsibly.
</docs>

What does the proposed API look like?

i have a self define docs tags, but i find when i use vue cli to build project; the docs tag also build to js files, so how should i ignore the tag when i build project!

thank!

@haoqunjiang
Copy link
Member

Can't reproduce. Please provide a runnable reproduction.
See documentation at https://vue-loader.vuejs.org/guide/custom-blocks.html#example
I believe this block should have been ignored silently.

@elevatebart
Copy link

@sodatea, I agree that this is what the documentation says. But here is a quick repro (with storybook).
You might as well look for the webpack config. It is mostly here.

@elevatebart
Copy link

elevatebart commented Oct 2, 2019

I believe it might have to do with having multiple loaders matching .vue files.

@pksunkara
Copy link

I think the quick reproduction can be done by just having vue-loader and the vue-addon-info loader by @pocka

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

No branches or pull requests

4 participants