grunt使用 CLI

使用 CLI

The grunt command-line interface comes with a series of options. Use grunt -h from your terminal to show these options.

--help, -h

Display help text

--base, -b

Specify an alternate base path. By default, all file paths are relative to the Gruntfile.

Alternative to grunt.file.setBase(...)

--no-color

Disable colored output.

--gruntfile

Specify an alternate Gruntfile.

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

--debug, -d

Enable debugging mode for tasks that support it.

--stack

Print a stack trace when exiting with a warning or fatal error.

--force, -f

A way to force your way past warnings.

Want a suggestion? Don't use this option, fix your code.

--tasks

Additional directory paths to scan for task and "extra" files.

Alternative to grunt.loadTasks(...)

--npm

Npm-installed grunt plugins to scan for task and "extra" files.

Alternative to grunt.loadNpmTasks(...)

--no-write

Disable writing files (dry run).

--verbose, -v

Verbose mode. A lot more information output.

--version, -V

Print the grunt version. Combine with --verbose for more info.

--completion

Output shell auto-completion rules. See the grunt-cli documentation for more information.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值