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

webpack/browserify #92

Open
adyz opened this issue Jun 27, 2016 · 1 comment
Open

webpack/browserify #92

adyz opened this issue Jun 27, 2016 · 1 comment

Comments

@adyz
Copy link

adyz commented Jun 27, 2016

Hi guys,

Any way to require this plugin with webppack or browserify?

var lazyloadxt = require('lazyloadxt');

@bajax
Copy link

bajax commented Aug 21, 2018

I know this is a two year old comment, but I thought I'd reply for people like me who might have come across this thread when searching for the answer. It is already possible to use this with Browserify, but you have to reference the source file you want explicitly in your require statement, like so:

require('lazyloadxt/dist/jquery.lazyloadxt')

Make sure that a reference to jQuery is available in the global context when you do this since it installs itself automatically.

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