Closed abelovic closed 8 years ago
+1
I have no experience with ThrowPropsPlugin or Draggable, if anyone has an example for this, please share with us :)
We are using Draggable with webpack in our of our projects. Relevant config changes include aliasing off the expected dependencies in webpack.config.js.
// somewhere in code
require('gsap')
if (typeof window !== 'undefined') require('gsap/src/uncompressed/utils/Draggable')
Draggable.create(/* ... */)
// webpack.config.js
{
resolve: {
alias: {
TweenLite: 'gsap',
CSSPlugin: 'gsap/src/uncompressed/plugins/CSSPlugin'
}
}
I would like to use the throwPropsPlugin/Draggable. How would I do this?