2 years ago

Prevent javascript package from pulling in jquery

Posted 2 years ago by clay

javascript 101 i'm sure, but I'm not having any luck. In my resources/assets/js/app.js:


in my webpack.mix.js:

mix.js('resources/assets/js/app.js', 'public/js');

now, when I 'npm run dev', the public/js/app.js is created as it should be, however, since 'the-package' depends on jquery, and jquery is available in my node_modules, it is automatically pulled in and added to public/js/app.js. I want to simply prevent jquery from being automatically pulled in. Of course, my setup is much more involved than this, but I stripped it down to this one problem. Any pointers?


Please sign in or create an account to participate in this conversation.