Skip to content

Commit

Permalink
Don't watch node_modules dir in dev server mode (#702)
Browse files Browse the repository at this point in the history
* add a negate pattern for a watcher

* replace hardcoded docs path with getDocsPath()
  • Loading branch information
artiebits authored and yangshun committed May 26, 2018
1 parent 407636a commit b5fd7ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,9 @@ function execute(port) {
// gaze watches some specified dirs and triggers a callback when they change.
gaze(
[
'../docs/**/*', // docs
'../' + readMetadata.getDocsPath() + '/**/*', // docs
'**/*', // website
'!node_modules/**/*', // node_modules
],
function() {
// Listen for all kinds of file changes - modified/added/deleted.
Expand Down

0 comments on commit b5fd7ba

Please sign in to comment.