Fixed high CPU usage of `grunt dev`

no issue
- exclude the `core/server/lib/members/static/auth` from the express reload watch task as it contains a large `node_modules` directory which caused `grunt-contrib-watch` to peg the CPU
- the directory only relates to static client-side files which do not require a server restart on change and ivereload is handled via the separate `preact watch` shell task
This commit is contained in:
Kevin Ansfield 2019-01-02 13:30:17 +00:00
parent 6797da599b
commit 26d567b948
1 changed files with 7 additions and 1 deletions

View File

@ -76,7 +76,13 @@ var config = require('./core/server/config'),
}
},
express: {
files: ['core/ghost-server.js', 'core/server/**/*.js', 'config.*.json', '!config.testing.json'],
files: [
'core/ghost-server.js',
'core/server/**/*.js',
'!core/server/lib/members/static/auth/**/*.js',
'config.*.json',
'!config.testing.json'
],
tasks: ['express:dev'],
options: {
spawn: false,