November 2014
Beginner
336 pages
10h 58m
English
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).
Listing 4.8 Use grunt.loadNpmTasks to Load Our Plug-ins
// Load Grunt plugins grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-jshint');
Read now
Unlock full access