Closed lucasmpaim closed 3 years ago
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({ .... });
Another way is add this to webpack and expose the jQuery:
new webpack.ProvidePlugin({ '$': 'jquery', jQuery: 'jquery', })
This PR resolves the issue #387 and #390
The jQuery on my project has imported with:
But this causes a error in library, because $ is undefined, this PR resolves it.
For use the library with webpack is something like: