Don't watch node_modules dir in dev server mode (#702)

* add a negate pattern for a watcher

* replace hardcoded docs path with getDocsPath()
This commit is contained in:
artiebits 2018-05-26 07:34:03 +02:00 committed by Yangshun Tay
parent 407636a4d9
commit b5fd7bae73

View file

@ -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.