3c798b39 by Adam Heath

Fix loading of sub-grunt tasks.

1 parent 81a7bd37
...@@ -12,8 +12,8 @@ module.exports = function (grunt) { ...@@ -12,8 +12,8 @@ module.exports = function (grunt) {
12 var initConfig = {}; 12 var initConfig = {};
13 var checkList = []; 13 var checkList = [];
14 14
15 grunt.loadNpmTasks('grunt-monty-python');
15 if (mpConfig.jshint) { 16 if (mpConfig.jshint) {
16 grunt.loadNpmTasks('grunt-contrib-jshint');
17 initConfig.jshint = { 17 initConfig.jshint = {
18 options: mpConfig.jshint.options, 18 options: mpConfig.jshint.options,
19 all: [ 19 all: [
...@@ -37,14 +37,12 @@ module.exports = function (grunt) { ...@@ -37,14 +37,12 @@ module.exports = function (grunt) {
37 } 37 }
38 38
39 if (mpConfig.csslint) { 39 if (mpConfig.csslint) {
40 grunt.loadNpmTasks('grunt-contrib-csslint');
41 initConfig.csslint = { 40 initConfig.csslint = {
42 }; 41 };
43 checkList.push('csslint'); 42 checkList.push('csslint');
44 } 43 }
45 44
46 if (mpConfig.htmlmin) { 45 if (mpConfig.htmlmin) {
47 grunt.loadNpmTasks('grunt-contrib-htmlmin');
48 initConfig.htmlmin = { 46 initConfig.htmlmin = {
49 }; 47 };
50 checkList.push('htmlmin'); 48 checkList.push('htmlmin');
......