google-fonts-plugin weekly downloads statistics
By SirPole · npm · Webpack plugins
Webpack plugin that downloads fonts from Google Fonts and encodes them to base64.
google-fonts-plugin has 916 recorded weekly downloads on npm, an increase of 10.5% over the past 30 days, ranking #1409 of 2,256 tracked listings.
About google-fonts-plugin
Google Fonts Plugin
Webpack plugin that downloads fonts from Google Fonts and encodes them to base64.
Supports various font formats, currently eot, ttf, woff and woff2.
Exports to format specific css files, which you can serve to your clients.
Note: Current version works with Webpack 4. For webpack 3, use version 1.0.3
Install
Usage
webpack.config.js
webpack.config.js
Options
Plugin supports configuration in javascript object, json file and also in your package.json.
| Name | Type | Default | Description |
| fonts | Font[] | Roboto | Defines which fonts and it's variants and subsets to download. | | formats | String[] | woff, woff2 | Specifies which formats to download. Valid options are eot, ttf, woff and woff2. | | encode | Boolean | true | Whether should encode to base64. | | cache | Boolean | true | Whether FS caching should be checked before sending requests. | | fontDisplay | String | swap | When encode if false, this will add font-display property. Disables when empty. | | filename | String | [name].css | Defines filename template. Valid substitutions are [name], [hash], [chunkhash]. | | stats | Boolean | true | Collects basic statistics about options. You may opt out at any time by setting this to false |
Font object
| Name | Type | Default | Description |
| family | String | Roboto | Sets the font family | | variants | String[] | 400, 400i, 700, 700i | Sets the variants of the font family to download, note that not all fonts have all the possible variants | | subsets | String[] | latin-ext | Sets the subsets, note that not all fonts are available in all subsets | | text | String | | Only downloads specific characters contained in the string provided, more information here. Ignores subsets. |
Example configuration
config.json
Note: For Google's material icons, simply set Material Icons as font-family
Note: From version 5.0.0, neon support is dropped to simplify the plugin itself. If you've used neon before, parse it yourself and pass the resulting object to the plugin instead. See release notes for implementation example.
Description from the npm listing.
- fonts
- google-fonts
- webpack-plugin
- webpack
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm Webpack plugins plugins
All 20 google-fonts-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/google-fonts-plugin. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.