gulpfile-wrap-template.js 364 B

123456789101112131415161718
  1. ;(function(window, document, undefined) {
  2. "use strict";
  3. <%= contents %>
  4. /*
  5. * Use SweetAlert with RequireJS
  6. */
  7. if (typeof define === 'function' && define.amd) {
  8. define(function () {
  9. return sweetAlert;
  10. });
  11. } else if (typeof module !== 'undefined' && module.exports) {
  12. module.exports = sweetAlert;
  13. }
  14. })(window, document);