![](/img/trans.png)
[英]Is there a way to write a glob pattern that matches all files except those in a folder?
[英]A glob pattern to to match anything(file or folder) except one folder
我有這個 glob 模式並試圖從中排除i18n
文件夾:
dist/assets/!(i18n)/**
基本上,我想匹配assets
文件夾中除i18n
文件夾之外的所有內容。 i18n
文件夾包含一些.json
文件。
這最終奏效了:
dist/assets/**/!(ar.json|en.json)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.