We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91480aa commit dd35b50Copy full SHA for dd35b50
1 file changed
lib/cli/transforms/addDefaultIgnorePatterns.ts
@@ -1,5 +1,14 @@
1
import {List} from "immutable";
2
3
+const defaultIgorePatterns = [
4
+ /node_modules/,
5
+ /bower_components/,
6
+ /\.sass-cache/,
7
+ /\.vscode/,
8
+ /\.git/,
9
+ /\.idea/
10
+];
11
+
12
export function addDefaultIgnorePatterns(incoming) {
13
if (!incoming.get("watch")) {
14
return incoming;
@@ -11,16 +20,7 @@ export function addDefaultIgnorePatterns(incoming) {
20
.filter(Boolean)
21
.toSet();
22
- const merged = userIgnored.merge([
15
- /node_modules/,
16
- /bower_components/,
17
- /\.sass-cache/,
18
- /\.vscode/,
19
- /\.git/,
- /\.idea/,
- "!node_modules/**/*",
- "!**/node_modules/**"
23
- ]);
+ const merged = userIgnored.merge(defaultIgorePatterns);
24
25
return watchOptions.merge({
26
ignored: merged.toList(),
0 commit comments