Skip to content

Commit 2a95463

Browse files
kylebuch8mwcz
authored andcommitted
ignoring node_modules (#117)
There are about 86,000 files in node_modules. We need to tell Browsersync to stop watching these files. This dramatically speeds up page load times and gets rid of the Javascript head error that some of us were seeing in the command line.
1 parent fe1f24f commit 2a95463

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spandx.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ module.exports = {
88
"/elements": "./elements",
99
"/doc": "./doc",
1010
"/favicon.ico": "./favicon.ico",
11-
"/": "./node_modules/"
11+
"/": "./node_modules"
12+
},
13+
bs: {
14+
watchOptions: {
15+
ignoreInitial: true,
16+
ignored: ["node_modules"]
17+
}
1218
}
1319
};

0 commit comments

Comments
 (0)