When testing realtime changes to my app using the grunt serve
It takes between 6 to 10 seconds for the changes to show/update in the browser.
I used grunt serve --verbose
to check for what task takes more time than other and found the folowing tasks consume most of the load time (in descending order);
concurent:server
grunt-contrib-imagemin
grunt-karma
grunt-google-cdn
Since I don't use cdn I removed it from Gruntfile.js
but it still called; which is a bit confusing :( so I removed it also from the package.json
and it disappeared.
So my questions are.
- How to speed up the
grunt serve
to reload the browser instantly? but also preserve all "juice" of useful tasks (minify, uglify, imagemin..) when usinggrunt build
. - Why when I disable a task on Gruntfile.js it still loads?
Thanks :)