cz3ueq
Last Updated: February 25, 2016
·
918
· tripleaxis
6d662a5606df772b7793bc6b7d584b25

Exclude Bower from your Yeoman Generators

If you don't require Bower dependencies in a Yeoman generator you can remove it by adding the bower: false flag to your index.js file.

This is useful if you don't want an empty bower_components folder in your generated project.

// inside your generator's constructor //
this.on('end', function () {
  this.installDependencies({
    skipInstall: options['skip-install'],
    bower: false
  });
});
Say Thanks
Respond