Club GSAP & Netlify
Steps to install Club GSAP packages in netlify
Add a file named
.npmrc
to the project root with the following contents in it:always-auth=true
@gsap:registry=https://npm.greensock.com
//npm.greensock.com/:_authToken=${PRIVJS_TOKEN}If you are running the app in the dev environment, replace
${PRIVJS_TOKEN}
with your own token.Install the package using the following command:
$ npm install gsap@npm:@gsap/business
if you are using yarn package manager then you need to run:
$ yarn add @gsap/shockingly gsap@npm:@gsap/business
Feel free to change
/business
to any other Club GSAP package name of your choice.Finally you need to add the
TOKEN
value to your environment variables in netlify site settings:
That's it!