JavaScript Beautifier can also use as an online JavaScript editor. GulpUglifyError:unable to minify JavaScript JavaScript algolia-search. Js deobfuscate can help you to Format JavaScript. EDIT: For regeneratorRuntime is not defined error, I think that regenerator-runtime could be helpful. JavaScript beautifier or deobfuscate JavaScript is mainly used as indentation JavaScript but it also provides you JavaScript validator, JavaScript editor and JavaScript minifier. gulp/tasks/default.js specifies the default set of tasks to run when you run gulp. Had similar issue with gulp-uglify, and as Ive found out it seems that minifying async/await is not supported with base gulp-uglify, so I switched to babel-minify, and it worked for me.
GulpUglifyError: unable to minify JavaScriptĪt createError (E:\nodejs\node-express-test\node_modules\gulp-uglify\lib\create-error.js:6:14)Īt wrapper (E:\nodejs\node-express-test\node_modules\gulp-uglify\node_modules\lodash_createHybrid.js:87:15)Īt trycatch (E:\nodejs\node-express-test\node_modules\gulp-uglify\minifier.js:26:12)Īt DestroyableTransform.minify (E:\nodejs\node-express-test\node_modules\gulp-uglify\minifier.js:76:19)Īt DestroyableTransform.Transform._read (E:\nodejs\node-express-test\node_modules\gulp-uglify\node_modules\through2\node_modules\readable-stream\lib_stream_transform.js:159:10)Īt DestroyableTransform.Transform._write (E:\nodejs\node-express-test\node_modules\gulp-uglify\node_modules\through2\node_modules\readable-stream\lib_stream_transform.js:147:83)Īt doWrite (E:\nodejs\node-express-test\node_modules\gulp-uglify\node_modules\through2\node_modules\readable-stream\lib_stream_writable.js:313:64)Īt writeOrBuffer (E:\nodejs\node-express-test\node_modules\gulp-uglify\node_modules\through2\node_modules\readable-stream\lib_stream_writable.js:302:5)Īt (E:\nodejs\node-express-test\node_modules\gulp-uglify\node_modules\through2\node_modules\readable-stream\lib_stream_writable.js:241:11)Īt Transform.ondata (_stream_readable. To add a new task, simply add a new task file that directory.