0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

jit-grunt

Posted at

jit-grunt

まだgruntを使っていて、たくさんのloadNpmTasksを実行している環境もある模様。
そこでjit-gruntが有効であったことを残しておきたい。

module.exports = function(grunt) {

  grunt.initConfig({
    // config類
  });

  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-imagemin');
  grunt.loadNpmTasks('grunt-contrib-compress');
  grunt.loadNpmTasks('grunt-contrib-htmlmin');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-concat-css');
  grunt.loadNpmTasks('grunt-strip');
  grunt.loadNpmTasks('grunt-nginx');
  grunt.loadNpmTasks('grunt-autoprefixer');
  grunt.loadNpmTasks('grunt-html');
  grunt.loadNpmTasks('grunt-postcss');
  grunt.loadNpmTasks('grunt-contrib-copy');

  grunt.registerTask('default',['htmlmin']);
};

B


module.exports = function(grunt){

  require('jit-grunt')(grunt)({
    pluginsRoot: 'node_modules', 
    customTasksDir: 'custom/dir'
  });

  grunt.initConfig({
    // config類
  });

  grunt.registerTask('default',['htmlmin']);
};

今日、7年放置したサーバ機能を振り返っていて、jit-gruntがやっぱり最強だったので
今から使おうという人は希少だろうけれどGruntで一番影響力を持っていたパッケージだったなと思って

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?