Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Last active August 29, 2015 14:15
Show Gist options
  • Save NickHeiner/69263ed82e4546ca7580 to your computer and use it in GitHub Desktop.
Save NickHeiner/69263ed82e4546ca7580 to your computer and use it in GitHub Desktop.
A task that loads slowly
'use strict';
// This code gets run no matter what,
// so if this dep is slow to load,
// you will pay that tax every time you run `grunt`.
var bigDep = require('big-dependency');
module.exports = function(grunt) {
grunt.registerTask('my-task', function myTaskFn() {
bigDep();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment