How to reference an NPM package within webflow custom code?

Hi there :slight_smile:

I am trying to design a beautiful google map and its infowindows with some custom code.
You can have a look at the codepen I wrote sofar.

Everything seems to work fine on codepen except the google maps API isn’t loading asynchronously. As soon as I’m writting async defer in the script tag, the infowindows are disapearing. I believe this is because I’m using an infowindow pluggin called Snazzy Infowindow which requires us to make a reference to its NPM package.

So my question is, how can I make a reference to the Snazzy Infowindow NPM package within Webflow custom code ?

npm install --save snazzy-info-window

Thank you for your help ! :smiley:
Anthony

You can’t reference it without downloading the package somehow and uploading to your private server, because NPM is not a CDN.

see node.js - Download source from npm without installing it - Stack Overflow

1 Like

@samliew interesting !! thank you so much for the link, I’ll have a look. :slight_smile: