3c798b39 by Adam Heath

Fix loading of sub-grunt tasks.

1 parent 81a7bd37
......@@ -12,8 +12,8 @@ module.exports = function (grunt) {
var initConfig = {};
var checkList = [];
grunt.loadNpmTasks('grunt-monty-python');
if (mpConfig.jshint) {
grunt.loadNpmTasks('grunt-contrib-jshint');
initConfig.jshint = {
options: mpConfig.jshint.options,
all: [
......@@ -37,14 +37,12 @@ module.exports = function (grunt) {
}
if (mpConfig.csslint) {
grunt.loadNpmTasks('grunt-contrib-csslint');
initConfig.csslint = {
};
checkList.push('csslint');
}
if (mpConfig.htmlmin) {
grunt.loadNpmTasks('grunt-contrib-htmlmin');
initConfig.htmlmin = {
};
checkList.push('htmlmin');
......