{"_id":"@draftbox-co/gatsby-plugin-webfonts","_rev":"6-1c758fb8bfe89c3dd3b9f1aac7536bc5","time":{"1.1.2":"2020-05-14T14:15:54.974Z","created":"2020-05-14T14:26:15.034Z","1.1.3":"2020-05-14T14:26:15.430Z","modified":"2022-04-05T05:35:55.012Z","1.1.4":"2021-03-16T14:22:27.831Z"},"name":"@draftbox-co/gatsby-plugin-webfonts","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.3":{"name":"@draftbox-co/gatsby-plugin-webfonts","version":"1.1.3","description":"A Gatsby plugin to handle cdn, base64 and self hosted webfonts","license":"MIT","author":{"name":"hello@webappsolutions.de"},"repository":{"type":"git","url":"git+https://github.com/hupe1980/gatsby-plugin-webfonts.git"},"keywords":["gatsby-plugin","gatsby","plugin","web","fonts","loader","google","webfonts","webfontloader"],"main":"index.js","scripts":{"build":"babel src --out-dir . --ignore **/__tests__","build: watch":"babel -w src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","jest":"jest","jest:watch":"jest --watch"},"dependencies":{"axios":"^0.19.0","cssnano":"^4.1.10","fs-extra":"^8.0.1","lodash.isempty":"^4.4.0","postcss":"^7.0.17","postcss-js":"^2.0.1"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","babel-jest":"^24.8.0","babel-preset-gatsby-package":"^0.1.4","cross-env":"^5.2.0","jest":"^24.8.0"},"bugs":{"url":"https://github.com/hupe1980/gatsby-plugin-webfonts/issues"},"homepage":"https://github.com/hupe1980/gatsby-plugin-webfonts#readme","_id":"@draftbox-co/gatsby-plugin-webfonts@1.1.3","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-gmCLaXFvombdPVEkr4HcmYGbLL7kwvvAiAxMWpR9x0Kr74TH0GEEkPnPxF8jsfakg8+ASGmxtX/i1hO+AcTW4w==","shasum":"5cecdc55e6c4ce22bf15c34301294ff3d64242b9","tarball":"https://registry.npmjs.org/@draftbox-co/gatsby-plugin-webfonts/-/gatsby-plugin-webfonts-1.1.3.tgz","fileCount":13,"unpackedSize":31219,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevVUJCRA9TVsSAnZWagAA7wUQAJOjBxuDIce+wWAkFOC0\ntgocHSBzNjJXgeBh9CmrGCwn5vwRW58N1j7OGxGTSlv5nkk7ClxD+9tqz49t\nd58qHYSHtN9oERZJf0MQvCmBGl61UPB2gETr46bMmjDBEJzSEce2McObINz5\ndT5hx8j8jwXZMs5WMroAYuLzoURQc67b+v+FEUJ3cG/lXeKcO6j3iTvjOW81\nxOJEdTFJJsYPoDM/TqVSWQ7uB1Mag/xyIw+Sq5irdXs7hCWWe/KtisKRBeCr\nVyIoYEuX1+v8Bj5qyNDjGdOwnhffqQA172o801HHcK2Mw2zsYrroco+0E0AR\n2y8v/ymwqMYoCqJhF6MOFYo0F8yrGw8N4FZmkJddDe8R1nLF/qOApih7JsoH\nu3rlTg7zTOR/0sj/3QpW40rtTSOvgRh2fMTWo63pMBoeKjvHcCG4DUXIAGQl\n84rtP2sFjcTiXPyO1tLY1fooTxg73Sz+Mi/FA88Szvv4P1rYI2YeyuSdIVyV\nLH8mRJv1TYRE+n8qwGCx9KKc6Hjdm4HmRKSIyQ0MHNiUBV1DM5J4zxhQlad4\nPo7RVZCyWTM1J5F3V+HsbB8PSiXo0kZUB7fi+OpvJE9Nri8BZboKQaG9T6ON\nlI71fS8oi6qn9eY4eIxpAkf8/082jRNoI6/FZhD5ypQ0UOamLM4MMELwIZPB\npZRk\r\n=uSTX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWszzUTJr2EXwvLr/RR/fFOF6+nxiQcf0ZwnqaLpTPiAiEAhReVfK2/T8AkEbEwNgcv7pL0EByHx73xNnDOfF72FII="}]},"maintainers":[{"name":"shyamlohar","email":"shyamlohar1996@gmail.com"},{"name":"thanda_anda","email":"keyur.raval18@gmail.com"},{"name":"keyurarmada","email":"keyur@getarmada.app"}],"_npmUser":{"name":"shyamlohar","email":"shyamlohar1996@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-webfonts_1.1.3_1589466375286_0.8880314697081135"},"_hasShrinkwrap":false},"1.1.4":{"name":"@draftbox-co/gatsby-plugin-webfonts","version":"1.1.4","description":"A Gatsby plugin to handle cdn, base64 and self hosted webfonts","license":"MIT","author":{"name":"hello@webappsolutions.de"},"repository":{"type":"git","url":"git+https://github.com/hupe1980/gatsby-plugin-webfonts.git"},"keywords":["gatsby-plugin","gatsby","plugin","web","fonts","loader","google","webfonts","webfontloader"],"main":"index.js","scripts":{"build":"babel src --out-dir . --ignore **/__tests__","build: watch":"babel -w src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","jest":"jest","jest:watch":"jest --watch"},"dependencies":{"axios":"^0.19.0","cssnano":"^4.1.10","fs-extra":"^8.0.1","lodash.isempty":"^4.4.0","postcss":"^7.0.17","postcss-js":"^2.0.1"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","babel-jest":"^24.8.0","babel-preset-gatsby-package":"^0.1.4","cross-env":"^5.2.0","jest":"^24.8.0"},"bugs":{"url":"https://github.com/hupe1980/gatsby-plugin-webfonts/issues"},"homepage":"https://github.com/hupe1980/gatsby-plugin-webfonts#readme","_id":"@draftbox-co/gatsby-plugin-webfonts@1.1.4","_nodeVersion":"12.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1HtzeXGmET5oY5BhD38SFsMrllqonFL9so4MYbPW0iXqNAtk/DFFmcxhVdWwHxwxqLTXd//mWSkMEISECT0VQA==","shasum":"5bee2aac32244c4573c150b7da263b63f97801c2","tarball":"https://registry.npmjs.org/@draftbox-co/gatsby-plugin-webfonts/-/gatsby-plugin-webfonts-1.1.4.tgz","fileCount":13,"unpackedSize":31197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUL8kCRA9TVsSAnZWagAAdasP/Ry1ZfZ9QHTT/rviUkTH\nefi+W4cD6cGuzkzgpjls6jibw204g9e081/lzQnY3T4u900p1yTI9mDfRYB0\nWeoEASW7wNO5MoaUPtg4baoRNc+cd7dEeKxGfd7T2Sf34L/yqLi0trAnyb+q\nM3eonCkP/MZyifNuVhuwF/iN8WCWGCMCACOsUYJZr83kYOPuRkuC8+LC2ktu\nHoEQ1D3kEVxANwetxr+psQW90M5+E/yGclDowpOAPklGjcH5S1PfbAb6RGZ8\nd7EcKFKH7SdS6eDmShrDYeX+Lu6mHHt9Dgu4RlQ0N89qQs10qNSznm9cVnJF\nmK/l23ZVJCP0I1iPco60FsLlpqtmBV+aUjDiUZn5eI1MmP4zzRxW+ebYiyXx\n4m9YbaM0KgrvWMKR0PLZzMTJvAeoLq9FOUnGOzbhecvYOsYFzMsPGGD+GuJh\nk/YvMoSEJhVk3R5wsaYApNZ5RT6hKt9GHmIkMWOfUQwPwm42xNc+dZOQddyB\ngWWqunFfJSwDBcD67mQZ3stzqlqSHDK/viU+PJtwcbcXm8MyGWHER9d+613k\nQn14YDJMy+my1lI3TabWo1bXqdD/gIA8ynyvn0JL9vmWc64bY/WCI11Vacg0\nAdp+hSDS35qbpKTWTb5QKIyMPdm2AI/KmrVeZ0pOt37GDjiCbCajUTudQR4j\ntrD1\r\n=fG/W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOYRTWujhSxacVnVWTA8fp3rH7J7Qb4iHA+P7UAo9YLAiEA85IaqpptPgqF0zTzPOBXl7u/J5N4lnjrvst8OHo1owk="}]},"_npmUser":{"name":"thanda_anda","email":"keyur.raval18@gmail.com"},"directories":{},"maintainers":[{"name":"keyurarmada","email":"keyur@getarmada.app"},{"name":"thanda_anda","email":"keyur.raval18@gmail.com"},{"name":"shyamlohar","email":"shyamlohar1996@gmail.com"},{"name":"gunnerforlife52","email":"arunpriyadarshi52@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-webfonts_1.1.4_1615904547675_0.01935079808703266"},"_hasShrinkwrap":false}},"maintainers":[{"name":"keyurarmada","email":"keyur@getarmada.app"},{"name":"thanda_anda","email":"keyur.raval18@gmail.com"},{"name":"shyamlohar","email":"shyamlohar1996@gmail.com"},{"name":"gunnerforlife52","email":"arunpriyadarshi52@gmail.com"}],"description":"A Gatsby plugin to handle cdn, base64 and self hosted webfonts","homepage":"https://github.com/hupe1980/gatsby-plugin-webfonts#readme","keywords":["gatsby-plugin","gatsby","plugin","web","fonts","loader","google","webfonts","webfontloader"],"repository":{"type":"git","url":"git+https://github.com/hupe1980/gatsby-plugin-webfonts.git"},"author":{"name":"hello@webappsolutions.de"},"bugs":{"url":"https://github.com/hupe1980/gatsby-plugin-webfonts/issues"},"license":"MIT","readme":"# gatsby-plugin-webfonts\r\n\r\n> A [Gatsby](https://github.com/gatsbyjs/gatsby) plugin to handle cdn, base64 and self hosted webfonts\r\n\r\n- Creates minified @font-face CSS rules\r\n- Supports font-display property (Default: 'swap')\r\n- Handles preconnect and preload optimizations\r\n- Automatically downloads fonts for self hosting\r\n- Supports cdn, base64 and self hosted Fonts (Default: 'selfHosted')\r\n\r\n## Install\r\n\r\n```sh\r\n// with npm\r\nnpm install gatsby-plugin-webfonts\r\n\r\n// with yarn\r\nyarn add gatsby-plugin-webfonts\r\n```\r\n\r\n## How to use\r\n\r\nEdit `gatsby-config.js`\r\n\r\n```javascript\r\nmodule.exports = {\r\n  plugins: [\r\n    {\r\n      resolve: `gatsby-plugin-webfonts`,\r\n      options: {\r\n        fonts: {\r\n          google: [\r\n            {\r\n              family: \"Roboto\",\r\n              variants: [\"300\", \"400\", \"500\"],\r\n              //subsets: ['latin']\r\n              //text: 'Hello'\r\n              //fontDisplay: 'swap',\r\n              //strategy: 'selfHosted' // 'base64' || 'cdn'\r\n            },\r\n          ],\r\n        },\r\n        //formats: ['woff2', 'woff'],\r\n        //useMinify: true,\r\n        //usePreload: true,\r\n        //usePreconnect: false,\r\n      },\r\n    },\r\n  ],\r\n};\r\n```\r\n\r\n## Google Fonts\r\n\r\nUsing [Google's Font API](https://code.google.com/apis/webfonts/docs/getting_started.html), name the font families you'd like to load.\r\n\r\n```javascript\r\nmodule.exports = {\r\n  plugins: [\r\n    {\r\n      resolve: `gatsby-plugin-webfonts`,\r\n      options: {\r\n        fonts: {\r\n          google: [\r\n            {\r\n              family: \"Roboto\",\r\n              variants: [\"300\", \"400\", \"500\"],\r\n            },\r\n            {\r\n              family: \"Open Sans Condensed\",\r\n              variants: [\"300\", \"700\"],\r\n            },\r\n          ],\r\n        },\r\n      },\r\n    },\r\n  ],\r\n};\r\n```\r\n\r\nYou can also supply the text parameter to perform character subsetting:\r\n\r\n```javascript\r\nmodule.exports = {\r\n  plugins: [\r\n    {\r\n      resolve: `gatsby-plugin-webfonts`,\r\n      options: {\r\n        fonts: {\r\n          google: [\r\n            {\r\n              family: \"Roboto\",\r\n              variants: [\"300\", \"400\", \"500\"],\r\n              text: \"Hello\",\r\n            },\r\n          ],\r\n        },\r\n      },\r\n    },\r\n  ],\r\n};\r\n```\r\n\r\nThe text subsetting functionality is only available for Google fonts.\r\n\r\n## License\r\n\r\n[MIT](LICENSE)\r\n","readmeFilename":"README.md"}