Jump to content
Search Community

joejordanbrown

Members
  • Posts

    2
  • Joined

  • Last visited

joejordanbrown's Achievements

1

Reputation

  1. Sorry, that was a mistake when copying from TypeScript. Thank you Jack, I think you meant. import { TweenMax } from "gsap"; import CSSRulePlugin from "gsap/CSSRulePlugin"; I had to change it slightly for it to work in TypeScript I've created example below for other people to use as a reference in future. JavaScript + Webpack: https://www.webpackbin.com/bins/-KmZTQAtz9cZMRMzY4mN TypeScript + Webpack: https://www.webpackbin.com/bins/-KmZW-TYfUdNkkcDmwkw
  2. When using CSSRulePlugin with Webpack you get the following console error "Uncaught TypeError: Cannot read property 'getRule' of undefined". I've created two examples 1 working using codepen which doesn't use webpack and then 1 using webpackbin which uses webpack. none webpack: webpack:: https://www.webpackbin.com/bins/-KmZTQAtz9cZMRMzY4mN
×
×
  • Create New...