Add UMD support and export WOW class as default#249
Add UMD support and export WOW class as default#249cusspvz wants to merge 1 commit intomattdelacdev:masterfrom
Conversation
|
@graingert Really? Didn't knew about that, didn't code on CS for about probably a year. Is there any easier change? Inspite it does or not, this does the job. |
|
Is this why I have to write import container from 'wowjs';
const WOW = container.WOW;...when using WOW through NPM/Browserify? |
|
@samhavens nope, you only need to write: import Wow from 'wow.js';
new Wow(...); |
|
@samhavens you're missing the "." between wow and js. This gets you the official https://wow.js.org version. |
|
So you npm install works, but when you bring it in, you use the period? Or
Sam Havens CTO |
|
@samhavens you need to |
|
when you drop the "." you have to release your source under the GPL. |
|
Wow! Thanks
Sam Havens CTO |
Implementation referred on issue #228