Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9317195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:48:53+00:00 2026-06-19T02:48:53+00:00

grunt-contrib-watch plugin provides nice auto-build feature but in some occasions does not display warning

  • 0

grunt-contrib-watch plugin provides nice auto-build feature but in some occasions does not display warning message from tasks, here is my grunt.js:

    min: {
        app: {
            src: [
                'some.js',
            ],
            dest: 'some.min.js'
        },
    }

    watch: {
        app: {
            files: 'some.js',
            tasks: ['min:app']
        },
    }

if source is fine, that everything goes smoothly; however when UglifyJS aborts:

run grunt min:app directly

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.

auto-build via watch plugin

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

so there is no way to know if build is successful without looking at output itself.

similar setup with css less does display error to CLI, I am wondering if there is something I need to pass to grunt/watch plugin/uglify to makes it work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:48:54+00:00Added an answer on June 19, 2026 at 2:48 am

    Looks like Grunt v0.3.x + grunt-contrib-watch v0.1.4 is indeed the problem…

    https://github.com/gruntjs/grunt-contrib-watch/issues/19

    https://github.com/gruntjs/grunt-contrib-watch/issues/7

    (EDIT: after upgrading to Grunt v0.4.x + grunt-contrib-watch v0.2.x, issue is resolved; though I should note this is a breaking upgrade, most v0.3 plugins are not converted to support Grunt v0.4 yet)

    I closed my ticket on their repo as well, for reference: https://github.com/gruntjs/grunt-contrib-watch/issues/51

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to compile my coffeescript file with grunt using the grunt-contrib-coffee plugin. But
A client credential grant does not return a refresh token (DotNetOpenAuth.OAuth2.AuthorizationServer.PrepareAccessTokenRequest forbids it). But
Not sure if I'm missing something but I have the following grunt setup for
I'm using yeoman and grunt to build my project and grunt-css plugin for using
Does someone used node-inspector with Grunt for application debugging? If not, Can you recommend
I have some code in a grunt.js file which is working with 0.3 but
I'm trying to build a github jquery-ui library using grunt , but after running
I use the grunt usemin plugin to compile my requirejs files. In my html
I was wondering how a Grunt plugin could wrap around another. For example, a
I've been following Addy Osmani's guide on using grunt and the bbb plugin to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.