如果我的代码绝对正确,为什么会出现此错误?Grunt 提示错误:
c:\xampp\htdocs\yeoman\ci-test\Grunt < % if(includeLess) { % > ^ 正在加载“Gruntfile.js”任务...错误 >> SyntaxError: Unexpected token < on build
代码:
grunt.registerTask('serve', [
<% if(includeLess) { %>
'less',<% } %>
'express',
'open',
'imagemin',
'watch'
]);