【发布时间】:2016-01-11 11:03:43
【问题描述】:
我的项目中有一个 Gruntfile.js,由 WebStorm(JetBrains IDE for Javascript)解析。解析后的任务出现在 Grunt 视图中。
考虑以下任务(参见http://gruntjs.com/frequently-asked-questions#options):
grunt.registerTask('upload', 'Upload code to specified target.', function(n) {
var target = grunt.option('target');
// do something useful with target here
});
如何使用 WebStorm 运行 grunt upload --target=staging ?我找不到传递选项的方法。
【问题讨论】: