0
我gruntfile迄今创建覆盖`options`但使用任务级别的子任务`src`
uglify: {
src: [
...
],
dest: 'js/application.min.js',
options: {
'compress': {},
'reserveDOMCache': true,
'enclose': undefined,
'exportAll': false,
'expression': false,
'preserveComments': false,
'report': 'min',
'sourceMap': false,
'sourceMapIn': undefined,
'sourceMapIncludeSources': false,
'sourceMapName': undefined,
'wrap': undefined
},
development: {
options: {
'beautify': false,
'mangle': true
}
},
production: {
options: {
'beautify': true,
'mangle': false
}
}
}
然而,当我运行任务uglify:development
它将与No files created.
我能够适应你的解决方案,以我想用'src的方式工作:'<%= uglify.src%>'' – stackoverfloweth