【发布时间】:2014-04-22 05:48:04
【问题描述】:
打开yeoman生成的Gruntfile.js,我看到了:
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= config.app %>',
dest: '<%= config.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'images/{,*/}*.webp',
'{,*/}*.html',
'styles/fonts/{,*/}*.*'
]
}]
},
styles: {
expand: true,
dot: true,
cwd: '<%= config.app %>/styles',
dest: '.tmp/styles/',
src: '{,*/}*.css'
}
},
{,*/}*.* 是什么意思?我可以看到它正在尝试从文件夹中获取所有内容,并且我知道 * 表示任何字符。但我不知道该模式到底做了什么......
请帮忙。非常感谢。
【问题讨论】:
标签: javascript url path gruntjs yeoman