Jump to menu

Vote up?

  1. Gabriella

    Thanks to your article and this one by Philip Brown , I finally got grunt up and running with my custom settings. Couldn’t be happier.

    A tip I picked up from Brown’s article was to use matchdep to automatically load in your Grunt plugins. So instead of loading each plugin manually as so:

    @grunt.loadNpmTasks(‘grunt-contrib-uglify’);@

    you would have matchdep do it for you…

    to set up matchdep run this command in the terminal:

    @npm install matchdep —save-dev@

    then replace your grunt.loadNpmTasks with this line instead:

    @require(‘matchdep’).filterDev(‘grunt-*’).forEach(grunt.loadNpmTasks);@

    and you’re good to go! :)