che*_*nop 3 angularjs grunt-contrib-uglify ng-annotate
我想在我的所有项目的角度文件上通过grunt运行ng-annotate.
找不到此选项.
我只通过指定文件名来选择注释.
ngAnnotate: {
dist: {
files: {
'output_file_name.js': ['input_file_name'],
},
}
}
Run Code Online (Sandbox Code Playgroud)
我需要一些更通用的东西,它会在特定目录上递归运行.
Mik*_*ckx 10
您可以使用其他配置浏览文件夹并注释将在*.annotated.js文件中输出的每个文件.
ngAnnotate: {
dist: {
files: [{
expand: true,
src: ['**/*.js', '!**/*.annotated.js'],
ext: '.annotated.js',
extDot: 'last'
}],
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3368 次 |
| 最近记录: |