# watch.exclude

类型: string | RegExp| (string| RegExp)[]
CLI: --watch.exclude <files>

该选项用于指定不需要被 watch 的文件:

// rollup.config.js
export default {
  ...,
  watch: {
    exclude: 'node_modules/**'
  }
};
Last Updated: 6/14/2023, 8:56:23 AM