
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
lazy-load-grunt-config
Advanced tools
lazy-load-grunt-config is a Grunt library that allows you to break up your Gruntfile config by task
lazy-load-grunt-config is a Grunt library that allows you to break up your Gruntfile config by task. It was inspired by load-grunt-config
npm install lazy-load-grunt-config
module.exports = function(grunt) {
require('lazy-load-grunt-config')(grunt);
};
module.exports = function(grunt) {
var path = require('path');
require('lazy-load-grunt-config')(grunt, {
// Path to task files, defaults to grunt dir.
configPath: path.join(process.cwd(), 'grunt'),
// Auto grunt.initConfig
init: true,
// Data passed into config. Can use with <%= test %>
data: {
test: false
},
// Can optionally pass options to load-grunt-tasks. If you set to false, it will disable auto loading tasks.
loadGruntTasks: {
pattern: 'grunt-*',
config: require('./package.json'),
scope: 'devDependencies'
}
});
};
If your grunt/ folder contains an aliases.js file, lazy-load-grunt-config will use that to define your tasks aliases (like grunt.registerTask('default', ['nodemon']);).
grunt/aliases.js returning an object.
module.exports = {
'default': [],
css: ['copy', 'stylus']
};
grunt/aliases.js returning a function. Useful if there is need to compute something before return.
module.exports = function (grunt, options) {
// Computation example:
// --------------------
var css = ['copy', 'stylus'];
if (grunt.option('notify', false)) {
css.push('notify:css');
}
return {
'default': [],
css: css
};
};
FAQs
lazy-load-grunt-config is a Grunt library that allows you to break up your Gruntfile config by task
The npm package lazy-load-grunt-config receives a total of 2 weekly downloads. As such, lazy-load-grunt-config popularity was classified as not popular.
We found that lazy-load-grunt-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.