Jump to content
Search Community

motebotic

Members
  • Posts

    3
  • Joined

  • Last visited

motebotic's Achievements

1

Reputation

  1. Thanks for your help Blake, that really lead me to understand a few things. Enjoying gsap btw, awesome product.
  2. Thanks Blake, My problem is with setting up gsap in webpack in a node environment, without using hackery I don't think I should be doing. gsap react enhancer needs gsap to work. I have read a few posts on this, and my newbieness handicaps my understanding & attempts at making them work. I was hoping something could be done in webpack that just makes it so I can import TimelineMax for example in the component that's using it. So to be clear: - I have it working by importing gsap into the entry page where webpack does its magic. - I don't know why it works or should that even be done. - I am hoping someone can answer how or if I even can set this up in webpack as a loader or something and the best way to do it. React GSAP Enhancer works perfectly by the way for any other react developers out there (:
  3. Love this tool and was wondering if anyone with some webpack experience can help me get it working with react. (I use webpack, babel, nodejs). So to get it working I have had to import {TimelineMax} from 'gsap' at the application entry point (app.js) and then it works in any component without importing it. If I import gsap in just a component I get a document is not defined error. My guess is if I can work out how to load gsap in webpack this will fix the problem (react-gsap-enhancer works without problems as long as I include gsap on entry point). Can anyone give me guidance if I am on the right path and maybe how I load this file in webpack and/or if doing what I am doing right now to make it work is a bad idea (:
×
×
  • Create New...