1.

Can You Override Default Settings Of A Plugin? If Yes, Then How?

Answer»

Yes, we can override. Inside a TASK configuration, an options property MAY be SPECIFIED to override built-in defaults. In ADDITION, each target may have an options property which is specific to that target.

  1. module.exports = function(grunt) {
  2. grunt.initConfig({
  3. pkg: grunt.file.readJSON('package.json'),
  4. concat: {
  5. options: {
  6. SEPARATOR: ';'
  7. }
  8. }
  9. });
  10. };

Yes, we can override. Inside a task configuration, an options property may be specified to override built-in defaults. In addition, each target may have an options property which is specific to that target.



Discussion

No Comment Found