Closed AliOsseili closed 6 years ago
Grunt can run tasks directly when specified via the CLI like:
grunt zip
We can also define the default task via registerTask('default')
grunt
# Same as: grunt default
We can add more tasks to a registerTask()
via:
grunt.registerTask('default', ['compress', 'zip', 'electron-packager']);
As the title says, how can I make it so all I have to do is type: grunt and it will find zip as a task to do in my gruntfile, because when I do that it doesn't even detect it at all and pretends its not there, here's what I got: const os = require('os'); module.exports = function(grunt) { require('load-grunt-tasks')(grunt);
};