1.

Where Do You Define Configuration Of Grunt Plugin?

Answer»

GRUNT plugin configuration needs to be DEFINED within grunt.initConfig method. See below sample CODE.

  1. module.exports = function(grunt) {
  2. grunt.initConfig({
  3. pkg: grunt.file.readJSON('package.json'),
  4. concat: {
  5. // concat TASK configuration GOES here.
  6. },
  7. uglify: {
  8. // uglify task configuration goes here.
  9. }
  10. });
  11. };

Above code configures concat and uglify tasks.

Grunt plugin configuration needs to be defined within grunt.initConfig method. See below sample code.

Above code configures concat and uglify tasks.



Discussion

No Comment Found