
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@beyonk/google-fonts-webpack-plugin
Advanced tools
Compatible with Webpack 4.0
Download Google fonts to webpack build folder using google-webfonts-helper or use CDN to integrate with html-webpack-plugin.
npm install @beyonk/google-fonts-webpack-plugin
/webpack.config.js
const GoogleFontsPlugin = require("@beyonk/google-fonts-webpack-plugin")
module.exports = {
"entry": "index.js",
/* ... */
plugins: [
new GoogleFontsPlugin({
fonts: [
{ family: "Source Sans Pro" },
{ family: "Roboto", variants: [ "400", "700italic" ] }
]
/* ...options */
})
]
}
new GoogleFontsPlugin(options: Object)
Name | Type | Default | Description |
---|---|---|---|
fonts | FontObject[] | - | Configuration generated by http://fontello.com. |
name | String | "fonts" | Module name. |
filename | String | "fonts.css" | Css file name. |
path | String | "font/" | Relative path to fonts directory. If path is undefined fonts are not downloaded, the css file is generated with Google hosted font files. |
local | Boolean | true | Wether to use google-webfonts-helper API or just link to Google Fonts hosted css. If this option is set to false this plugin just adds the css url to html-webpack-plugin (if present). |
formats | Array | [ "eot", "woff", "woff2", "ttf", "svg" ] | Font formats to download. |
apiUrl | String | "https://google-webfonts-helper.herokuapp.com/api/fonts" | google-webfonts-helper API url. |
Name | Type | Default | Description |
---|---|---|---|
family | String | - | Font family. |
variants | Array | - | Font variants according to google-webfonts-helper (e.g.: [ "italic", "500", "700italic" ] ). |
subsets | Array | - | Font subsets according to google-webfonts-helper (e.g.: [ "latin", "greek" ] ). |
formats | Array | - | Font formats to download. Defaults to options.formats . |
FAQs
Google Fonts Webpack plugin
The npm package @beyonk/google-fonts-webpack-plugin receives a total of 451 weekly downloads. As such, @beyonk/google-fonts-webpack-plugin popularity was classified as not popular.
We found that @beyonk/google-fonts-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.