mirror of https://github.com/status-im/metro.git
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:
parent
089461c0a8
commit
be1843cddc
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue