Merge pull request #2980 from strapi/fix/add-ignore-patterns-to-watcher

Add patterns to ignore in the file watcher
This commit is contained in:
Jim LAURIE 2019-03-15 17:52:06 +01:00 committed by GitHub
commit c8846384cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,13 +38,19 @@ const watchFileChanges = ({ appPath, strapi }) => {
/(^|[/\\])\../, /(^|[/\\])\../,
/tmp/, /tmp/,
'**/admin', '**/admin',
'**/admin/**',
'**/components', '**/components',
'**/components/**',
'**/documentation', '**/documentation',
'**/documentation/**',
'**/node_modules', '**/node_modules',
'**/node_modules/**',
'**/plugins.json', '**/plugins.json',
'**/index.html', '**/index.html',
'**/public', '**/public',
'**/public/**',
'**/cypress', '**/cypress',
'**/cypress/**',
'**/*.db*', '**/*.db*',
], ],
}); });