Skip to content

Commit a71fc7d

Browse files
committed
updating grunt with load grunt tasks
1 parent b2ddb52 commit a71fc7d

6 files changed

Lines changed: 10 additions & 11 deletions

File tree

css-compiled/material-wfont.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css-compiled/material.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gruntfile.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module.exports = function(grunt) {
22

33
"use strict";
44

5+
require('load-grunt-tasks')(grunt);
6+
57
grunt.initConfig({
68

79
less: {
@@ -37,7 +39,7 @@ module.exports = function(grunt) {
3739
"css-compiled/material-wfont.css": "css-compiled/material-wfont.css",
3840
"css-compiled/ripples.css": "css-compiled/ripples.css"
3941
}
40-
},
42+
}
4143
},
4244

4345
cssmin: {
@@ -63,11 +65,7 @@ module.exports = function(grunt) {
6365
}
6466

6567
});
66-
grunt.loadNpmTasks("grunt-contrib-less");
67-
grunt.loadNpmTasks("grunt-contrib-sass");
68-
grunt.loadNpmTasks("grunt-autoprefixer");
69-
grunt.loadNpmTasks("grunt-contrib-cssmin");
70-
grunt.loadNpmTasks("grunt-contrib-copy");
68+
7169
grunt.registerTask("default", ["less", "autoprefixer", "cssmin", "copy"]);
7270
grunt.registerTask("scss", ["sass", "autoprefixer", "cssmin", "copy"]);
7371
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"grunt-contrib-copy": "^0.6.0",
2323
"grunt-contrib-cssmin": "^0.10.0",
2424
"grunt-contrib-less": "^0.11.4",
25-
"grunt-contrib-sass": "^0.8.1"
25+
"grunt-contrib-sass": "^0.8.1",
26+
"load-grunt-tasks": "^0.6.0"
2627
}
2728
}

template/material/css-compiled/material-wfont.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/material/css-compiled/material.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)