LoginSignup
1
1

More than 5 years have passed since last update.

grunt-este-watchで特定フォルダを監視対象から外す方法

Last updated at Posted at 2014-02-13

基本的には全フォルダを監視対象にしたいけど、Yeoman,Grunt,Bower,etc... が生成するフォルダを監視対象から外したい。

node_modules/を監視対象から外す場合

module.exports = (grunt) ->

  grunt.initConfig

    ...

    esteWatch:
      options:
        dirs:['*/','!node_modules/','*/**/','!node_modules/**/']

    ...

node_modules/ hoge/ fuga/を監視対象から外す場合

module.exports = (grunt) ->

  grunt.initConfig

    ...

    esteWatch:
      options:
        dirs:['*/','!{node_modules,hoge,fuga}/','*/**/','!{node_modules,hoge,fuga}/**/']

    ...
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1