angular-skycons
angular-skycons copied to clipboard
webpack use
Hello, First of all thank you for your work, this plugin is very cool.
The only problem is that I can not integrate it with webpack and the npm repository.
In my entry file i put this line :
import Skycons from 'skycons' ;
and i have one error in my console when i call the plugin like this :
var skycons = new Skycons({"color": color});
skycons.add(element[0], newValues);
skycons.play();
The console error :
TypeError: skycons.add is not a function
Do you have a solution ? thank you
I have the same issue
I had this issue but was able to get rolling by using this declaration instead:
const Skycons = require("skycons")(window)