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

通过vite.createServer({ ...options })的方式创建devServer,插件报错,如图 #22

Closed
devie2020 opened this issue Jun 18, 2021 · 2 comments

Comments

@devie2020
Copy link

image

@anncwb
Copy link
Collaborator

anncwb commented Jun 23, 2021

尝试打印看看styleImport的值, 或者试一下require(xxx).default

@anncwb anncwb closed this as completed Jun 23, 2021
@devie2020
Copy link
Author

加了default后就OK了,这个插件相比较官方的插件,通过require的方式引入就存在这个问题,建议优化

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