javascript - 如何为 Gruntfile.js 使用替代名称?

标签 javascript gruntjs

有没有办法重命名 Gruntfile.js 本身?是否有使用替代命名的 Gruntfile.js 的语法?

最佳答案

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.

关于javascript - 如何为 Gruntfile.js 使用替代名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32989503/

相关文章:

javascript - 如何在 express 中为 websocket 服务器设置路由?

javascript - 禁用背景音乐控制

javascript - 使用 grunt build 生成的 dist 文件夹不起作用

javascript - 如何缩小我的网络应用程序?

javascript - Grunt - 输出 2 个版本的 Web 应用程序

javascript - 使用 Node.js 在目录中搜索文件

javascript - 在 SAS/HTML/javascript 中,如何在打开后立即关闭 STP _webout html 页面?

javascript - 尝试实现一个简单的 -"subclassable"Array 子类

javascript - 检查Javascript对象中是否存在key和value

javascript - gruntjs - 如何在 HTML 文件中列出文件名和这些文件名的数据属性?