Skip to content

Commit

Permalink
fix: remove fonts except woff2 (#282)
Browse files Browse the repository at this point in the history
* fix: add purgecss webpack plugin

* fix: keep only woff2 font, remove purgeCss
  • Loading branch information
SgtPooki authored Jun 12, 2024
1 parent 947011e commit 7517a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const common = {
{ test: /\.(?:ico|gif|png|jpg|jpeg)$/i, type: 'asset/resource' },

// Fonts and SVGs: Inline files
{ test: /\.(woff(2)?|eot|ttf|otf|svg|)$/, type: 'asset/inline' },
{ test: /\.(woff2|svg|)$/, type: 'asset/inline' },
{
test: /\.(sa|sc|c)ss$/i,
use: [
Expand Down

0 comments on commit 7517a62

Please sign in to comment.