diff --git a/Gruntfile.js b/Gruntfile.js index 71b4402..69bc647 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -129,14 +129,7 @@ module.exports = function(grunt) { }); // Load tasks - grunt.loadNpmTasks('grunt-contrib-clean'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-less'); - grunt.loadNpmTasks('grunt-wp-assets'); - grunt.loadNpmTasks('grunt-modernizr'); + require('load-grunt-tasks')(grunt); // Register tasks grunt.registerTask('default', [ diff --git a/package.json b/package.json index 816a021..d9509ae 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "grunt-contrib-watch": "~0.5.3", "grunt-contrib-less": "~0.8.1", "grunt-wp-assets": "~0.2.1", - "grunt-modernizr": "~0.5.1" + "grunt-modernizr": "~0.5.1", + "load-grunt-tasks": "~0.3.0" } }