F7 v5 How to include jQuery

I just used the CLI and installed F7 with Cordova and webpack. I have some plugins that need jQuery to work. My question is what is the best way to include jQuery?

1 Like

What does it have to do with F7?

I’m new to doing things this way and thought I’d ask here as I followed the directions on F7. Is that good enough for you or do you want an in depth thesis on why I posted here?

First, install jquery:

npm i jquery

Then in the very top of your main JS file (app.js):

import jQuery from 'jquery';
window.jQuery = jQuery;
window.$ = jQuery;

Thank you, you are always helpful!

Thank you :slight_smile: really helpful.