Grunt has two methods for importing external data:
- grunt.file.readJSON
- grunt.file.readYAML
For example, you can load data from a file into configuration of GruntFile:
|
|
Using Tempalte to store external data into specific config properties, such as white and green in the above example. Then, you can get the data by method grunt.config.get().