Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix imports for Webpack #4

Closed
atav32 opened this issue Sep 20, 2018 · 1 comment · Fixed by #5
Closed

Fix imports for Webpack #4

atav32 opened this issue Sep 20, 2018 · 1 comment · Fixed by #5
Assignees
Labels
enhancement New feature or request

Comments

@atav32
Copy link

atav32 commented Sep 20, 2018

Like this: janpaepke#684

So that people don't have to keep doing this janpaepke#324 (comment) and this janpaepke#685 (comment)

@atav32 atav32 added the enhancement New feature or request label Sep 20, 2018
@atav32 atav32 self-assigned this Sep 20, 2018
@atav32 atav32 closed this as completed in #5 Sep 20, 2018
@atav32
Copy link
Author

atav32 commented Sep 21, 2018

A couple things to remember for the future

  1. everything's easier when the module name and all imports reference a lowercase name
    a) changed "ScrollMagic" to "scrollmagic" (except the class name)
  2. ES6 imports work better when ScrollMagic references the UMD versions of GSAP TweenMax
  3. still need a Webpack/Babel alias to help animation.gspa.js find the module scrollmagic and point it to scrollmagic.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant