![gulpuglifyerror unable to minify javascript gulpuglifyerror unable to minify javascript](https://i.stack.imgur.com/Ak8RG.png)
![gulpuglifyerror unable to minify javascript gulpuglifyerror unable to minify javascript](https://user-images.githubusercontent.com/4004108/108039733-c9beb780-703c-11eb-85b4-e6135685e630.png)
![gulpuglifyerror unable to minify javascript gulpuglifyerror unable to minify javascript](https://user-images.githubusercontent.com/2737900/102070781-e140b080-3dff-11eb-9865-f95a1655de8f.png)
Copy link alicoding commented May 22, 2017. For me, this added: 'uglifyjs-webpack-plugin': '1.2.4', To my devDependencies in package.json.
Gulpuglifyerror unable to minify javascript full#
pipe you'll probably will get the full error message. Owner terinjokes commented on edited binarykitchen If you use pump instead of chaining with. EDIT: For regeneratorRuntime is not defined error, I think that regenerator-runtime could be helpful. yangjunjun commented on you may have syntax error or used ES6 syntax.
Gulpuglifyerror unable to minify javascript code#
Why is the minimization of js files not performed if there is a let or const in the code code in js that cannot handle the plugin. 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. Error GulpUglifyError: unable to minify JavaScript 237. 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. I am using the latest version 3.0.1 and gulp 4.0.