A webpack loader for subsetting TTF font files to include only specified glyphs, reducing file size. Compatible with webpack 4 and 5, it forked the unmaintained font-subset-loader to update dependencies and fix compatibility. Stable version 1.1.7, with infrequent releases. Alternatives like fontmin-webpack or glyphhanger offer more features, but this loader integrates natively with webpack load chain, processing fonts as resources before file/url-loader.
npm install font-subset-loader2Verified import paths — ran on the pinned version, not inferred.
Webpack config to subset TTF font to include only specified glyphs.
Use 'options: { glyphs: '...' }' instead of inline query string.Upgrade to webpack 4 or 5.
Convert fonts to TTF before using this loader.
Ensure webpack config includes { test: /\.ttf$/, use: ['font-subset-loader2'] } and that it is the first loader in the 'use' array.No dependency data recorded yet.