Unexpected (failing) Gulp Ouptut #2507
Unanswered
Gkleinereva
asked this question in
Help
Replies: 1 comment
-
Hey folks - has anyone had a chance to peek at this? As part of my continued efforts to remedy the problem, I ran the original menu.js and my gulped menu.js through an unminifier. I've attached the results in case anyone finds them helpful. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone! I'm trying to modify a reveal.js plugin that is built with gulp. I've never used gulp before, and I can't reproduce the working minified files included in the parent repository. I haven't modified either the source (plugin.js in the zipped folder below) or gulpfile.js (also included below), but gulp produces a different (not working) output than the original minified files resulting in a fatal console error. I spent a few hours looking through gulp docs and tinkering, but to no avail. Does anyone see anything obvious that I'm missing? Snippets of the output are included below, and all relevant files are in the attached zip file. Thanks!
First bit of original (working) menu.js
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).RevealMenu=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
First bit of my gulped menu.js (generated with only the command 'gulp' with all dependencies installed exactly as specified in package.json with master's plugin.js)
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).RevealMenu=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
PluginFiles.zip
Beta Was this translation helpful? Give feedback.
All reactions