Built/Test Tools: Increase grunt watch interval on all files.
Significantly reduces Grunt's CPU usage when `grunt watch` is in an idle/watching state. Props netweb. Fixes #44241. git-svn-id: https://develop.svn.wordpress.org/trunk@43324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
247eba769e
commit
532d177b65
15
Gruntfile.js
15
Gruntfile.js
@ -1029,6 +1029,9 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
_watch: {
|
||||
options: {
|
||||
interval: 2000
|
||||
},
|
||||
all: {
|
||||
files: [
|
||||
SOURCE_DIR + '**',
|
||||
@ -1039,8 +1042,7 @@ module.exports = function(grunt) {
|
||||
tasks: ['clean:dynamic', 'copy:dynamic'],
|
||||
options: {
|
||||
dot: true,
|
||||
spawn: false,
|
||||
interval: 2000
|
||||
spawn: false
|
||||
}
|
||||
},
|
||||
'js-enqueues': {
|
||||
@ -1048,8 +1050,7 @@ module.exports = function(grunt) {
|
||||
tasks: ['clean:dynamic', 'copy:dynamic-js', 'uglify:dynamic', 'jsvalidate:dynamic'],
|
||||
options: {
|
||||
dot: true,
|
||||
spawn: false,
|
||||
interval: 2000
|
||||
spawn: false
|
||||
}
|
||||
},
|
||||
'js-webpack': {
|
||||
@ -1061,8 +1062,7 @@ module.exports = function(grunt) {
|
||||
tasks: ['clean:dynamic', 'webpack:dev', 'uglify:dynamic', 'jsvalidate:dynamic'],
|
||||
options: {
|
||||
dot: true,
|
||||
spawn: false,
|
||||
interval: 2000
|
||||
spawn: false
|
||||
}
|
||||
},
|
||||
config: {
|
||||
@ -1083,8 +1083,7 @@ module.exports = function(grunt) {
|
||||
],
|
||||
tasks: ['rtlcss:dynamic'],
|
||||
options: {
|
||||
spawn: false,
|
||||
interval: 2000
|
||||
spawn: false
|
||||
}
|
||||
},
|
||||
test: {
|
||||
|
Loading…
Reference in New Issue
Block a user