Skip to content

Commit

Permalink
WIP: Maybe fix the font bundle issue
Browse files Browse the repository at this point in the history
Not super important since it'll be completely rejigged within the
rebrand anyway, but nice to tidy up for now.
  • Loading branch information
pimterry committed Jul 9, 2024
1 parent 8c640c3 commit 6e04100
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions automation/webpack.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default <Webpack.Configuration>{
{ family: "Fira Mono" },
{ family: "Lato" }
],
path: '.',
formats: ['woff2'], // Supported by Chrome, FF, Edge, Safari 12+
filename: 'fonts.css',
apiUrl: 'https://gwfh.mranftl.com/api/fonts'
Expand Down
4 changes: 0 additions & 4 deletions automation/webpack.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ export default merge(common, {
// issues? This helps protect against possible corruptions:
const manifest = originalManifest.map((entry: any) => {
console.log(entry.url);
if (entry.url.includes('woff2')) {
console.log('[Skipping]');
return entry;
}

const asset = compilation.getAsset(entry.url);
const assetSource = asset.source.source();
Expand Down

0 comments on commit 6e04100

Please sign in to comment.