Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Created February 23, 2015 19:36
Show Gist options
  • Save NickHeiner/9b86f1056a6980347c95 to your computer and use it in GitHub Desktop.
Save NickHeiner/9b86f1056a6980347c95 to your computer and use it in GitHub Desktop.
A better way to load deps
'use strict';
module.exports = function(grunt) {
grunt.registerTask('my-task', function myTaskFn() {
// This code only gets run when your task executes,
// so you can do work here and not worry about
// slowing everyone else down.
var bigDep = require('big-dependency');
bigDep();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment