# watch.exclude
| 类型: | string | RegExp| (string| RegExp)[] |
|---|---|
| CLI: | --watch.exclude <files> |
该选项用于指定不需要被 watch 的文件:
// rollup.config.js
export default {
...,
watch: {
exclude: 'node_modules/**'
}
};
| 类型: | string | RegExp| (string| RegExp)[] |
|---|---|
| CLI: | --watch.exclude <files> |
该选项用于指定不需要被 watch 的文件:
// rollup.config.js
export default {
...,
watch: {
exclude: 'node_modules/**'
}
};