代码:
karma: {
unit: {
if ("<%= grunt.option('Release') %>" )
{
//do nothing
}
else
{
configFile: 'build/karma.conf.js',
singleRun: true,
browsers: ['PhantomJS']
}
}
}
如何在gruntfile.js中编写正确的if else语句。我正在使用Visual Studio项目文件调用gruntfile.js。