Add font file extensions (otf and ttf) to default supported extensions

Summary:
This makes it a little more convenient to dynamically load font files. We currently do with help from the "assetExts" config flag and find that we specify it a lot. Would you be interested in taking this PR?
Closes https://github.com/facebook/metro-bundler/pull/14

Differential Revision: D5284158

Pulled By: jeanlauliac

fbshipit-source-id: d102cf4776b9e3659c33e15d9d72f7ea0ea52d57
This commit is contained in:
James Ide 2017-06-20 11:04:53 -07:00 committed by Facebook Github Bot
parent 089461c0a8
commit be1843cddc
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ exports.assetExts = [
'm4v', 'mov', 'mp4', 'mpeg', 'mpg', 'webm', // Video formats
'aac', 'aiff', 'caf', 'm4a', 'mp3', 'wav', // Audio formats
'html', 'pdf', // Document formats
'otf', 'ttf', // Font formats
];
exports.sourceExts = ['js', 'json'];