ux.engineer
ux.engineer

Reputation: 11338

How to use alternative name for Gruntfile.js?

Is there a way to rename Gruntfile.js itself? Is there are syntax for using an alternatively named Gruntfile.js?

Upvotes: 1

Views: 127

Answers (2)

Piotr Stapp
Piotr Stapp

Reputation: 19830

Just use option --gruntfile in which you can specify the alternative name

Full documentation is available on http://gruntjs.com/using-the-cli

Upvotes: 1

hank
hank

Reputation: 3768

http://gruntjs.com/using-the-cli

--gruntfile

Specify an alternate Gruntfile.

By default, grunt looks in the current or parent directories for the nearest Gruntfile.js or Gruntfile.coffee file.

Upvotes: 3

Related Questions