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

修复plugin在使用npm安装时无法引用的bug #441

Open
guoyueting opened this issue Jul 8, 2018 · 0 comments
Open

修复plugin在使用npm安装时无法引用的bug #441

guoyueting opened this issue Jul 8, 2018 · 0 comments

Comments

@guoyueting
Copy link
Contributor

修复iSlider的plugin全局能用,npm包不能用的问题。
Bug描述:npm安装后根据package.json的main配置,入口文件是build/index.bundle.js,但实际上plugins中使用require('./iSlider')的引用方式只能调用src/js/iSlider.js中的plugin,因此会出现采用npm时二者不一致的情况。
解决方案:将plugins插件中的引用iSlider组件的代码由require('./iSlider')改为require('islider.js'),这样无论是全局还是npm,都能引用正确的iSlider组件。

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