I'm not able to get TweeLite to work with browserify. I'm an extreme noob when it comes to CommonJS.
I've installed gasp v1.13.2 using Bower and include it like this:
var TweenLite = require("../../bower_components/gsap/src/minified/TweenLite.min.js");
I don't get any errors when using it, but my animations don't work. According to gsap docs this version should work without a shim. What am I doing wrong? Can anyone provide a working example?
https://greensock.com/gsap-1-13-1
I've just started on a project so I dont have any interesting code to show. I'm using the gulp-starter boilerplate.
GSAP is also available through NPM so you should be able to install it via:
and use it the same way other libraries are referenced in the gulp-starter project eg in view.coffee:
Try using the uncompressed GSAP libraries. I'm successfully using them through
browserify
and installed withbower
. Like this:However, if I switch to the compressed builds
browserify
no longer finds the modules.It appear like the compression methods used to generate the minified builds somehow broke the module exports.