mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 03:37:48 +02:00
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:
parent
407636a4d9
commit
b5fd7bae73
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue