【发布时间】:2014-06-19 17:34:34
【问题描述】:
寻找正确的正则表达式将文件夹结构从“app”镜像到“dist”文件夹。
例如应用程序/组件/搜索/a.html 应用程序/组件/搜索/b.html 等等
到:dist/components/search/a.html dist/components/search/b.html 等等
我当前的 grunt htmlmin 条目:
htmlmin: {
dist: {
options: {
collapseWhitespace: true,
collapseBooleanAttributes: true,
removeCommentsFromCDATA: true,
removeOptionalTags: true
},
files: {
'<%= yeoman.dist %>/components/search' : '<%= yeoman.app %>/components/search/**/*.html'
}
}
},
尝试了其他几种组合均未成功。
【问题讨论】:
标签: gruntjs yeoman grunt-contrib-htmlmin