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

预渲染之后swiper插件不渲染 #1

Open
Peter-Success opened this issue Apr 22, 2019 · 2 comments
Open

预渲染之后swiper插件不渲染 #1

Peter-Success opened this issue Apr 22, 2019 · 2 comments

Comments

@Peter-Success
Copy link

ue的预渲染的页面引用了swiper 但是build之后swiper不生效 怎么怎么解决啊?

@Neveryu
Copy link
Owner

Neveryu commented Apr 25, 2019

不知道你的 swiper 是采用哪种方式引入的;build 之后 swiper 不生效,可以从浏览器调试器中查看,是否有资源请求出错

@Neveryu Neveryu pinned this issue Apr 25, 2019
@Neveryu Neveryu unpinned this issue Apr 25, 2019
@Peter-Success
Copy link
Author

是用ES6的import方式引用的,我换成直接在静态页面引入script的形式引用打包之后就正常,至于为什么大神能否解释?

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