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

Make a compatible with Webpack Frameworks #414

Closed
wants to merge 2 commits into from
Closed

Make a compatible with Webpack Frameworks #414

wants to merge 2 commits into from

Conversation

lucasmpaim
Copy link

@lucasmpaim lucasmpaim commented Dec 23, 2018

This PR resolves the issue #387 and #390

The jQuery on my project has imported with:

  window.$ = require('jquery')
  window.JQuery = require('jquery')

But this causes a error in library, because $ is undefined, this PR resolves it.

For use the library with webpack is something like:

require('icheck/icheck');
window.$('input').iCheck({
      ....
});

@lucasmpaim
Copy link
Author

Another way is add this to webpack and expose the jQuery:

new webpack.ProvidePlugin({
        '$': 'jquery',
        jQuery: 'jquery',
      })

@lucasmpaim lucasmpaim closed this Mar 12, 2021
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

Successfully merging this pull request may close these issues.

1 participant