Run and Configure a Multitask

Multitasks require configuration. You can create this either by using the corresponding *-configuration tasks, or by defining the configuration in Gruntfile.js.

To configure a multitask in Gruntfile.js:

  1. Open Gruntfile.js.
  2. Edit the file to configure the multitask.

    For example, to configure the vb-require-bundle multitask, you might edit the file to be similar to the following.

    module.exports = (grunt) => {
      grunt.initConfig({
       'vb-require-bundle': {
           options: {
               "transpile": true,
               "minify": true,
           },
           myWebApp: {
               options: {
                   "transpile": true,
                   "minify": true,
               },
           },
       },
        require('load-grunt-tasks')(grunt);
    };

    The top level task options are applied to all web applications. If you specify a target, the options are applied only to the target application.