0

我想将凉亭组件的完整文件夹结构(没有第一级文件)复制到我的 Web 项目中。

源项目的结构如下所示:

bower_components/roboto-fontface-bower/css/
bower_components/roboto-fontface-bower/fonts/
bower_components/roboto-fontface-bower/.bower.json
bower_components/roboto-fontface-bower/bower.json
bower_components/roboto-fontface-bower/LICSENSE
bower_components/roboto-fontface-bower/package.json
bower_components/roboto-fontface-bower/README.md

我想获取文件夹css(包含文件)和fonts(包含文件)。

我当前的minimatch模式是:

"bower_components/roboto-fontface-bower/**"

使用我当前的模式,文件.bower.json,bower.json等也被复制,这是我不想要的。我怎样才能只获得两个文件夹(css & fonts)?

我试过"bower_components/roboto-fontface-bower/{css/,fonts/}"了,但这没有任何复制。

4

1 回答 1

2

尝试bower_components/roboto-fontface-bower/{css,fonts}/*

您可以使用globster.xyz对其进行测试

于 2019-01-04T15:54:10.307 回答