Skip to content
All lessons

Tech Insights

Use loader: 'file?name=public/fonts/[name].[ext]' when loading fonts with Webpack instead of `loader: 'url-loader?limit=100...

Use loader: 'file?name=public/fonts/[name].[ext]' when loading fonts with Webpack instead of loader: 'url-loader?limit=100000' to avoid CSS bloat. The latter bundles the fonts into the CSS as DataUrls.

Shared by

  • Performance
  • Webpack

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us