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

自定义html标签引用未使用,就没有被打包? #594

Open
xsf0105 opened this issue Sep 29, 2021 · 0 comments
Open

自定义html标签引用未使用,就没有被打包? #594

xsf0105 opened this issue Sep 29, 2021 · 0 comments

Comments

@xsf0105
Copy link

xsf0105 commented Sep 29, 2021

使用的是web components,引入自定义标签

import {myElement} from "mynpm";

仅仅是引入这个自定义标签,然后在html中去使用,但打包时候,由于js中没有使用,这个包就没有build进去。

请问如何处理?谢谢

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

1 participant