user3802040
user3802040

Reputation: 117

Can I have multiple Grunt files

Is this possible to have two Gruntfiles.js in the same folder, one with the default name and second with for example Gruntfile-second.js ? If it is, how can i run the second one?

Upvotes: 2

Views: 285

Answers (2)

Vincent Schöttke
Vincent Schöttke

Reputation: 4716

You can use grunt --gruntfile Gruntfile-second.js to run the second file.

Upvotes: 6

jgillich
jgillich

Reputation: 76229

module.exports = function (grunt) {
    require('./Gruntfile-second.js')(grunt);
};

Upvotes: 0

Related Questions