caroso1222 / notyf

👻 A minimalistic, responsive, vanilla JavaScript library to show toast notifications.
https://carlosroso.com/notyf/
MIT License
2.66k stars 197 forks source link

Add UMD build #81

Closed Strajk closed 4 years ago

Strajk commented 4 years ago

Hi :wave: first of all, thx for amazing for on this lib 🤟

I would like to use it in Chrome extension I'm working on, but:

This PR adds .umd.js bundle which have UMD preamble

(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
    typeof define === 'function' && define.amd ? define(factory) :
    (global = global || self, global.Notyf = factory());
}(this, (function () { 'use strict';

// ...

Closes #78

Strajk commented 4 years ago

To consider:

caroso1222 commented 4 years ago

This is amazing, thank you!