Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Feature: add/remove file with grunt watch #1

Open
amitava82 opened this issue Jun 24, 2013 · 1 comment
Open

Feature: add/remove file with grunt watch #1

amitava82 opened this issue Jun 24, 2013 · 1 comment

Comments

@amitava82
Copy link

Instead of creating whole block we could setup grunt watch and listen to added or deleted event and add/remove script.

grunt.event.on('watch', function(action, filepath) {
  if(action == 'added'){
   //add script
  }
  if( action == 'deleted'){
   //remove script
  }
});
@scott-laursen
Copy link
Owner

Good idea. If you do a pull request I will merge it in.

scott-laursen pushed a commit that referenced this issue Aug 1, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants