Comments (11)
Yes it works now, thank you.
If anybody else runs into this
.pipe(uglify().on('error', function(e) { console.log('\x07',e.message); return this.end(); }))
from gulp-uglify.
This works great now, good work. One thing I noticed is npm install gulp-uglify
seems to pull the old version, so I had to change some files manually. Is it because the version number hasn't changed?
from gulp-uglify.
I haven't published it yet
from gulp-uglify.
Hello,
I still experience this problem if i save my file with invalid js it exits
from gulp-uglify.
@ionutvmi We now pass uglify errors up to the gulp task system to be handled like any other gulp plugin failure
from gulp-uglify.
Help me, please!!
I've a problem with the last version (Uglify).
"gulp-uglify": "^1.0.1"
The console shows me :
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error
at new JS_Parse_Error (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:196:18)
at js_error (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:204:11)
at croak (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:636:9)
at token_error (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:644:9)
at unexpected (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:650:9)
at expr_atom (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:1131:9)
at maybe_unary (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:1287:19)
at expr_ops (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:1322:24)
at maybe_conditional (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:1327:20)
at maybe_assign (node_modules/gulp-uglify/node_modules/uglify-js/lib/parse.js:1351:20)
from gulp-uglify.
@ionutvmi Worked for me, thanks man.
from gulp-uglify.
@mfyance in the most recent update, I've change the error messages to include which file name causes the problem. That is an error from UglifyJS, not this plugin.
from gulp-uglify.
@ionutvmi that worked perfectly. thanks!
from gulp-uglify.
I ended up having to go with https://www.npmjs.com/package/gulp-minify-css
from gulp-uglify.
@ionutvmi Works Great !
from gulp-uglify.
Related Issues (20)
- gulp-uglify changes behavior of javascript HOT 2
- Npm link is broken HOT 1
- Produce correct sourcemaps based on existing sourcemaps
- GulpUglifyError: unable to minify JavaScript HOT 14
- Wrong minified code produced with conditional variable declaration HOT 1
- Unexpected token: keyword (const) HOT 7
- gulp-uglify压缩匿名函数js无效 HOT 2
- events.js:167 throw er; // Unhandled 'error' event HOT 2
- ES6 syntax not supported~ HOT 1
- SourceMap not working well with gulp-uglify
- gulp-uglify can't handle async / await HOT 5
- Gulp-uglify removes back-slash at the end of a line within a multi line string, causing a corrupted source-maps HOT 2
- TypeError: aStr.charAt is not a function HOT 3
- Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. HOT 1
- how to uglify JSON? HOT 1
- No output if uglify method is called HOT 1
- Maximum call stack size exceeded HOT 2
- Unable to compress `` HOT 2
- gulp-uglify does not recognise the const keyword HOT 2
- not support node22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-uglify.