https://app.codegrid.net/entry/grunt-introduction
Gruntfileに定義して、gruntで実行。
module.exports = function(grunt){
grunt.initConfig({});
grunt.registerTask('default',[]);
};
| grunt | 全部のタスク実行 |
| grunt uglify:dist | uglify:distタスクのみ実行 |
| autoprefixer | ブラウザごとのprefixを付ける |
| cssmin | css圧縮 |
| uglify | js圧縮 |
| imagemin | image圧縮 |
| compass | Sass(css拡張言語)のコンパイル |
| jshint | jsの文法チェック |
| csslint | cssの文法チェック |