ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

File-loader and url-loader for fonts with Webpack


Here’s a few tidbits of knowledge on factors affecting the configuration of the loaders for fonts with webpack.

From @sokra

@justin808 The exact setup depends on you application. svg font files file-loader, svg images maybe url-loader. Btw. you can omit the mimetype query param if it can be determined from the file extension. The limit option is a tradeoff.