Skip to content

Commit

Permalink
Move fonts into folders, update webpack and native configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Dec 15, 2022
1 parent 67072a8 commit 525b99f
Show file tree
Hide file tree
Showing 24 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added assets/fonts/web/ExpensifyNewKansas-Medium.otf
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
{from: 'web/favicon-unread.png'},
{from: 'web/og-preview-image.png'},
{from: 'assets/css', to: 'css'},
{from: 'assets/fonts', to: 'fonts'},
{from: 'assets/fonts/web', to: 'fonts'},
{from: 'node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css', to: 'css/AnnotationLayer.css'},
{from: 'assets/images/shadow.png', to: 'images/shadow.png'},
{from: '.well-known/apple-app-site-association', to: '.well-known/apple-app-site-association', toType: 'file'},
Expand Down Expand Up @@ -189,7 +189,7 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
use: ['style-loader', 'css-loader'],
},
{
test: /\.(woff|woff2)$/i,
test: /\.(woff|woff2|otf)$/i,
type: 'asset',
},
{
Expand Down
2 changes: 1 addition & 1 deletion react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
ios: {},
android: {},
},
assets: ['./assets/fonts/'],
assets: ['./assets/fonts/native'],
};

0 comments on commit 525b99f

Please sign in to comment.