mirror of https://github.com/TryGhost/Ghost.git
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:
parent
6797da599b
commit
26d567b948
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue