Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

grunt-watch when you create a new folder does not work

grunt-watch when you create a new folder does not work

Problem

grunt-watch is being created using the program. A new added Folder will not be found when it's added to the js directory.

If the file structure looks like the following:

  js/moduleA.js
  js/moduleB.js
  js/modules/moduleC.js

And Glob pattern "**/*.js" if moduleB.js or moduleA.js or modules/moduleC.js module changes, it works fine.

However, grunt-watch running js folder under a new folder for the new folder is added, it does not recognize the watch.

   // Grunt watch running ....
   // create new_folder and create moduleD.js
   js/new_modules/moduleD.js 

Is the glob pattern wrong?

Problem courtesy of: TaeHee Kim

Solution

This is a known issue: New subfolders aren't watched until watch task is restarted

Solution courtesy of: dc5

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

grunt-watch when you create a new folder does not work

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×