Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
UmerHayyat

License on NPM package

Recommended Posts

Hi, 

I just purchased the license for gsap and received files as well. I need to consume them in my react based application so I would prefer importing them rather requiring or including them in my page. 

Any help is appreciated.

Link to comment
Share on other sites

Sure, you should be able to import the ES modules from a local directory (doesn't really matter where). in your download zip, you should see a bonus-files-for-npm-users directory - that has all the bonus files. Just drop that somewhere in your project and import accordingly. Does that help? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×