{"_id":"@boytanhao/google-fonts-webpack-plugin","_rev":"4-5cca72c2d1f9b745e90d139306f8f095","time":{"1.7.0":"2021-07-19T07:42:31.658Z","created":"2021-07-20T08:01:44.819Z","1.7.1":"2021-07-20T08:01:44.999Z","modified":"2022-04-04T20:18:30.225Z"},"name":"@boytanhao/google-fonts-webpack-plugin","dist-tags":{"latest":"1.7.1"},"versions":{"1.7.1":{"name":"@boytanhao/google-fonts-webpack-plugin","version":"1.7.1","description":"Google Fonts Webpack plugin","main":"src/index.js","author":{"name":"Gabriela Seabra"},"license":"ISC","homepage":"https://github.com/CometNet/google-fonts-webpack-plugin","repository":{"type":"git","url":"git+https://github.com/CometNet/google-fonts-webpack-plugin.git"},"keywords":["google","fonts","webfonts","webpack","plugin"],"scripts":{"test":"mocha --timeout 5000 spec --colors","watch":"mocha --timeout 5000 spec --colors --watch"},"devDependencies":{"eslint":"^5.0.1","memory-fs":"^0.4.1","mocha":"^5.2.0","should":"^13.2.1","webpack":"^4.14.0"},"dependencies":{"lodash":"^4.17.4","md5":"^2.2.1","node-fetch":"^2.1.2","webpack-sources":"^1.1.0","yauzl":"^2.8.0"},"peerDependencies":{"webpack":">=4.14.0"},"bugs":{"url":"https://github.com/CometNet/google-fonts-webpack-plugin/issues"},"gitHead":"65acb00186d96d705b94dc3cacb3a34f5b12bbb3","_id":"@boytanhao/google-fonts-webpack-plugin@1.7.1","_nodeVersion":"14.16.1","_npmVersion":"7.17.0","dist":{"integrity":"sha512-tvvk5iuPqgSOAIavgggfip/OehbVfVZV1FMI20n+u5dq/q6uLcEBPnjlwbfw6YpLJ/s0ELXNNMH/CH/ry4xrOg==","shasum":"0f21a08e0056d15c68ba8d0efc026c7b4290a11f","tarball":"https://registry.npmjs.org/@boytanhao/google-fonts-webpack-plugin/-/google-fonts-webpack-plugin-1.7.1.tgz","fileCount":11,"unpackedSize":25349,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9oLoCRA9TVsSAnZWagAA1scP/28gdwWOZFplGmPokbcw\nW5cnxWfefCEVW5rzS8WsIB/JuntMOMvCqP0Wt41//T5u/0eOToq5ADqYvUk1\nbzzIVupPtmw752iXLciLqnnK1ZcGV6ULjb/pMZkHsIEOpC+YrGDSmJsKiinV\nrxMvjIhmG0A4Xbf3NdT+9ClMag4Il4RhW56DLUd1FccdkYpdnC6Mtjcov4dS\nWmt95rAH+CH7jmmUI1i1zSIb7qrRTlrWhlLm8ITdIEnij7OfHNvI86I/maI4\nzVE1/XcsmxJu9k1CUbbrPSLPpEyhNLzbUNvTM5imDy3l9yVxY5D0nKmqW/lY\n3+V1vynSrYM7RkDd9oJEo/SVrj0aE755KDsR6iMB5guPneoj4fgQ+8cgvHtC\nfYyXRoE8mUP4tA/QJpHUY40V4AOy1tKhKcuZf7BhVArvl4Sd5GbPaCfVfGEH\ndvaTv6CtauhyMlHlrjY2OcaPiLtwpSsxiWGAFdSQx6aBcM3dawIzbgd5ME1q\nRrwfnsgpftj9bmzv/NKoIQtx7mCno54bMl0OqU17XnrHYXEHs+UkeCIbn4gT\nCdxxXPOO2izfbVEONCRIBpiAJ/fenwq9OY2sS8PQ6zCVXJZA8i7aByu36oYq\nf3GHSHxQ6V742+APgQGtb/kxMfUBeR/J+cOuQOrZUaU+VW5NXpGGZqEvKC7i\nMyUR\r\n=siZ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJEZwQK/LQxr1WxF/Jcw0ODwly4rz6J9BaTfWLhCo6GQIhAM6cD3valFbXVxA8LGdaV1Wis7mq1S3uvnGiAZiHyjSy"}]},"_npmUser":{"name":"boytanhao","email":"boytanhao@gmail.com"},"directories":{},"maintainers":[{"name":"boytanhao","email":"boytanhao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-fonts-webpack-plugin_1.7.1_1626768104868_0.44740538287514875"},"_hasShrinkwrap":false}},"maintainers":[{"name":"boytanhao","email":"boytanhao@gmail.com"}],"description":"Google Fonts Webpack plugin","homepage":"https://github.com/CometNet/google-fonts-webpack-plugin","keywords":["google","fonts","webfonts","webpack","plugin"],"repository":{"type":"git","url":"git+https://github.com/CometNet/google-fonts-webpack-plugin.git"},"author":{"name":"Gabriela Seabra"},"bugs":{"url":"https://github.com/CometNet/google-fonts-webpack-plugin/issues"},"license":"ISC","readme":"# 中国大陆连接不稳定 修复版\n\n# Google Fonts Webpack Plugin\n\n*Compatible with Webpack >= 4.14.0 and >= 5.0.0*\n\nDownload Google fonts to webpack build folder using [google-webfonts-helper](https://github.com/majodev/google-webfonts-helper) or use CDN to integrate with [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin).\n\n![publish](https://github.com/beyonk-adventures/google-fonts-webpack-plugin/workflows/publish/badge.svg)\n\n---\n\n## Install\n\n```bash\nnpm install @beyonk/google-fonts-webpack-plugin\n```\n\n## Usage\n\n`/webpack.config.js`\n```js\nconst GoogleFontsPlugin = require(\"@beyonk/google-fonts-webpack-plugin\")\n\nmodule.exports = {\n\t\"entry\": \"index.js\",\n\t/* ... */\n\tplugins: [\n\t\tnew GoogleFontsPlugin({\n\t\t\tfonts: [\n\t\t\t\t{ family: \"Source Sans Pro\" },\n\t\t\t\t{ family: \"Roboto\", variants: [ \"400\", \"700italic\" ], display: \"block\" }\n\t\t\t]\n\t\t\t/* ...options */\n\t\t})\n\t]\n}\n```\n\n## Options\n\n```js\nnew GoogleFontsPlugin(options: Object)\n```\n\n|Name|Type|Default|Description|\n|----|----|-------|-----------|\n|fonts|`FontObject[]`|-|Configuration generated by [Fontello.com](https://fontello.com).\n|name|`String`|`\"fonts\"`|Module name.\n|filename|`String`|`\"fonts.css\"`|Css file name.\n|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.\n|local|`Boolean`|`true`|Whether 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).\n|noLocalInCss|`Boolean`|`false`|Whether to prepend `local(FontName)` expression before font files in CSS file ([see MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src)).\n|formats|`Array`|`[ \"eot\", \"woff\", \"woff2\", \"ttf\", \"svg\" ]`|Font formats to download.\n|apiUrl|`String`|`\"https://google-webfonts-helper.herokuapp.com/api/fonts\"`|google-webfonts-helper API url.\n\n\n### FontObject\n\n|Name|Type|Default|Description|\n|----|----|-------|-----------|\n|family|`String`|-|Font family.\n|variants|`Array`|-|Font variants according\tto google-webfonts-helper (e.g.: `[ \"italic\", \"500\", \"700italic\" ]`).\n|subsets|`Array`|-|Font subsets according\tto google-webfonts-helper (e.g.: `[ \"latin\", \"greek\" ]`).\n|formats|`Array`|-|Font formats to download. Defaults to `options.formats`.\n|display|`String`|\"swap\"|Font Display|\n","readmeFilename":"README.md"}