Load Grunt Plug-ins
Just because the plug-ins were downloaded and installed using npm install
doesn’t mean that Grunt actually knows about them; it only means that they are available for Grunt to use if we tell Grunt about them. We do that using grunt.loadNpmTasks
(see Listing 4.8).
// Load Grunt plugins grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-jshint');
Get Learning to Program now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.