Last active
August 29, 2015 14:15
-
-
Save NickHeiner/69263ed82e4546ca7580 to your computer and use it in GitHub Desktop.
A task that loads slowly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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