@expo/webpack-config
Version:
The default Webpack configuration used to build Expo apps targeting the web.
23 lines • 676 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function createFontLoader(projectRoot, includeModule) {
return {
test: /\.(woff2?|eot|ttf|otf)$/,
use: [
{
loader: require.resolve('url-loader'),
options: {
limit: 50000,
name: './fonts/[name].[ext]',
},
},
],
include: [
projectRoot,
includeModule('react-native-vector-icons'),
includeModule('@expo/vector-icons'),
],
};
}
exports.default = createFontLoader;
//# sourceMappingURL=createFontLoader.js.map