2

I'm building a React Native app using Expo. In my app.json there as a key:

"assetBundlePatterns": ["**/*"],

I know this key expects a file path as its value. But what does "**/*" mean? I have my assets/ folder an the same level as app.json and in it there are three folders called animations/, images/ and fonts/. Will they be covered by that value?

J. Hesters
  • 13,117
  • 31
  • 133
  • 249
  • 4
    You can try `ls **/*` to check which directories are covered but yes, the three folders you mentioned above will be included. – Dan Feb 28 '19 at 12:41
  • @Dan If I do `ls src/**/*.test.js` no files are found. If I do `ls src/**/*` only the files in folders and subfolders are found (including the ones that end on `.test.js`), but the `src/` folders direct files (`src/App.test.js`) are left out. Extra weird that `src/**/*` finds `.test.js` files, but `src/**/*.test.js` does not. – J. Hesters Apr 05 '19 at 08:39

1 Answers1

1

Usual this **/* means all folders and all sub folders are consider by some script.

Maybe this Q/A will help you :

Q/A how-to-load-all-files-in-a-directory-using-webpack-without-require-statements

also

Q/A specifying-a-complete-sub-directory-in-webpack-2-entry

Most ussualy used by webpack etc.

Juan
  • 4,910
  • 3
  • 37
  • 46
Nikola Lukic
  • 4,001
  • 6
  • 44
  • 75