What's the proper way to import a legacy js in Foundation 6?

I’m using the Foundation 6 cli project. Some of my legacy code is running bxslider (npm install bxslider). Until I can transition to orbit, I’d like to keep using bxslider.

Is there a way for me to import or require it in the app.js? I can use the http cdn reference but would prefer to keep the dependency in my app.js

Thanks!

You can do it like with any npm module. Use the needed require or import statement.

Keep in mind that orbit is a very simple slider.

You are da man!

Turns I had to use require ‘…/…/…/node_modules/’ to get up the tree. It’s working!