In Grunt, I have defined a server
task that loads some configuration data and calls grunt.config.set
to save it. Then, it runs some other tasks, among which watch
. This task, in turn, calls the replace
task whenever a .html
file changes.
Now, my problem is that in the replace
task, I do not seem to be able to access the configuration data loaded in the server
task. How do I make sure it can access it?