tomusdrw / grunt-sync

[Not actively developed] Grunt.js task providing one-way synchronization of directories. Instead of copying all files only those that has been changed are copied which actually results in much faster execution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support exclude patterns

casio opened this issue · comments

Using exclude glob patterns like src: ['!**/*.scss', '**'] in src don't seem to work - .scssfiles are still being synced to dest.

Would be nice if one could exclude certain stuff like in other grunt tasks.

Hi!
I'm actually relying on grunt.file.expand so exclude patterns should be supported out of box.

Can you try to put your src patterns in reverse order, like this src: ['**', '!**/*.scss']?
I think it should work fine.

Ah, cool - changing the order did the trick. Thanks!