Skip to content

Instantly share code, notes, and snippets.

@kazu69
Last active December 30, 2015 18:29
Show Gist options
  • Select an option

  • Save kazu69/7867596 to your computer and use it in GitHub Desktop.

Select an option

Save kazu69/7867596 to your computer and use it in GitHub Desktop.
sample load-grunt-tasks
module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({});
grunt.registerTask('default', []);
}
module.exports = function (grunt) {
grunt.initConfig({});
// load tasks
grunt.loadNpmTasks('grunt-htmlmin');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-svgmin');
.
.
.
grunt.registerTask('default', []);
}
npm install --save-dev load-grunt-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment