Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing abort/success message from min (UglifyJS) task? #51

Closed
bitinn opened this issue Feb 20, 2013 · 2 comments
Closed

Missing abort/success message from min (UglifyJS) task? #51

bitinn opened this issue Feb 20, 2013 · 2 comments

Comments

@bitinn
Copy link

bitinn commented Feb 20, 2013

Shame on me for using v0.3 still, but is there a reason for contrib-watch not displaying error message from UglifyJS task?

Even when UglifyJS-related task failed, watch plugin display the same OK message.

Waiting...OK
>> File "some.js" changed.
Running "min:app" (min) task

for other tasks such as LESS, there are clear success message such as:

File asset\css\client-0.0.5.css created.
File asset\css\ie-0.0.5.css created.

if I run the same UglifyJS task manually, it displays the error/success message just fine, but they do NOT appear when ran by watch.

Running "min:app" (min) task
Minifying with UglifyJS...ERROR
[L360:C46] Unexpected token name, expected punc (position: 8529)
<WARN> UglifyJS found errors. Use --force to continue. </WARN>

Aborted due to warnings.
Running "min:app" (min) task
File "asset/js/app-0.0.5.min.js" created.
Uncompressed size: 29600 bytes.
Compressed size: 3151 bytes gzipped (9660 bytes minified).

Done, without errors.
@bitinn
Copy link
Author

bitinn commented Feb 20, 2013

Looks like my issue is linked to #19 as well, will update to Grunt v0.4 and report back...

@bitinn
Copy link
Author

bitinn commented Feb 20, 2013

yep, upgrade to Grunt v0.4 and watch v0.2 does resolve the issue. Though it also means 0.1.4 is broken at least on Win7, hard to say if it's a node.js issue or grunt issue.

http://stackoverflow.com/questions/14974875/grunt-watch-plugin-does-not-display-uglifyjs-abort-message/

@bitinn bitinn closed this as completed Feb 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant