{"_id":"webpack-font-preload-plugin","_rev":"15-6eb5b62d19006f7dea19376c271e3c36","name":"webpack-font-preload-plugin","dist-tags":{"latest":"1.5.0","beta":"2.0.0-beta.0"},"versions":{"1.0.0":{"name":"webpack-font-preload-plugin","version":"1.0.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","devDependencies":{"jsdom":"^16.2.0","webpack-sources":"^1.4.3"},"gitHead":"97f4374f88d3404c71ddf3e95149e381eda5541f","_id":"webpack-font-preload-plugin@1.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-eMqEOzAH/B5FxHHeFstuheI4J8016U2MNMrBop2Scf5yZzHm+X9wzXuZlXi9+gcS1qUMLkk9QXGetcxLc+6CSQ==","shasum":"7d870ef926c19ffc8398b756c11890c060a9cb09","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.0.0.tgz","fileCount":5,"unpackedSize":6718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUAzeCRA9TVsSAnZWagAAMxwQAKMUXUirYfK1CGeQl3tM\nV30jXgSVSlIGop1C5jLPdeDRyDZWnULh0n0NxPldHslB8pbG4TZj56iPOSIp\nA58A/oAFMgO39geg1cSUMRvtfCUJ5uVasOqcQlmdOiMkXfIZ2ylLr+MH5RFm\nLnQkf15TQTbNWpmzfHwT0hJL0mso1sycG/x8e1P0PnQtUaM2MUBB6s8wMknX\njbSIFGP1vDo/NHMbAguyg0l5JP6Bx8uanNliwRtekbj9PIxbc3ybhoLBMHlh\n9QbaxrBVWShl1qTcOtJZhjt4fR0hL8VSSaI974DiybIHOpFeAgYoOSoRq/jh\n0efxNHQLmzW30cC9aef6Ag46eEPGJqlPeTeHBeHQNZ/5+78Ba0nh0nFtzBaA\n0yifnNku3+8sPwacxmtOf3lr7VgWCqk0IC/hsDp19f4DoOKsUFaUItp5MnGv\nym3j5UcsowJ0fPj+KZMX9NrM2vSUCjVmj8TG57PAuF3sAttbf7yBWHEYeR2S\nZfABKqUrfIBb2fPyOffb2kC8B7bRdZ1kFLLS3aogA/HJ3yJmMCljndABQn0J\n27OAczsnbm62LgW8yRlUO14O3BMdtVtT9byXiaOHiwKZGIIQwZi/gtZDBOoD\nISsKdgFtGU2N4t+i5c7x0Z6KUq2Q32k5JfU4Ir+mjL1eEHmsxM+6Zio66ldN\nN/Lp\r\n=snWJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwbuMOmwWHzygfEb8+7xzij0ja7HfZcRjkVTnzPGTu0AiEA6KCYth34RjR43VVQQnKhzaNZsXBTc0fV0jh9Q8sDrj0="}]},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.0.0_1582304477595_0.2351812401108544"},"_hasShrinkwrap":false},"1.0.1":{"name":"webpack-font-preload-plugin","version":"1.0.1","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","devDependencies":{"jsdom":"^16.2.0","webpack-sources":"^1.4.3"},"gitHead":"d33f1c7df2779c45f8284aaf0e89022a31e9f0ba","_id":"webpack-font-preload-plugin@1.0.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-6qz/xJWvpFl14vKJAnGGPCCZ5og52Kti/phVyAcv1e2oRYh0UuxKonGqM8GydL03vcDzTxA7gryXprjD0lnb4A==","shasum":"5e157716107af94d18a9a40bab5b2b8bbe1b00df","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.0.1.tgz","fileCount":5,"unpackedSize":7701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUBxUCRA9TVsSAnZWagAAgPMP/0qf5fvrTZvxTlh27UyL\nWyicqT/exdZa9kbUnPmGPxapMnfrvyJzgBYCoIBB4aXIQzJwW5reLrSHgRre\nUwIyGqFSnMhxng0o0JJLbKg1aG1KuXeIkJjDzcbMf0VLhUKbhM6EDIgtdkix\nH3TH+UxNh1q+2txShikHO72bDfNlDmjuog70aUPVNzM6JBgBR+H1JZ/ilNm8\nLjNWEun2bXDO3y4XA/M7xPo85klMlfBS0NcGt+wsHfrF60Qx5FeN8CwpW8hQ\nsFcqTb/DGUPyNQBzHIgog/DAMEBH1IjGsGX+Y6tIYHl2z0UZAELjhdkwrUYb\nnFEJbS/pf1zESd4GSpJnZENOIgdQZbrGnWTb+bXDZbnQ/i82FDdJvu4I9/al\n4/rayUZUxLlI5qAXsTuhobUY/RvdRJ08NJVM5KDpYh/13fdPeY1m4C8Dy/ca\nJtZ0rST1DsRqPCAfYfSsAi951PgWgy4lH1HBjNiRCAZoO+UnwxSt8SWmIDiQ\nCoziGRl4by3KXIvW+91Oc0ay+C+HsYbY6QLBNyCn8k5+TOIVs2ntT8193ZfP\nrD0376Xo3JRye23q8/IreEBk/NPTOnJBeq+Y5MhzTITQhRTlH1bnq61qlTpJ\niQl54jV9Sz9+T5rvOqV3/uQyqbxsMX4UKelUtK0Y8qgae20032hn8C4UOFUw\npCtw\r\n=y852\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuOWPC60bQQnBjvStCgX9xuePybyM/HaoQQNUUVKTibwIgJp1qO2lbKBlp/CQUyUyPJdy/5VG7mnlgH/xY9OLYx3g="}]},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.0.1_1582308436157_0.4433643386253314"},"_hasShrinkwrap":false},"1.1.0":{"name":"webpack-font-preload-plugin","version":"1.1.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","devDependencies":{"eslint":"^7.21.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.3.1","husky":"^5.1.1","jest":"^26.6.3","jsdom":"^16.4.0","lint-staged":"^10.5.4","prettier":"^2.2.1","webpack-sources":"^2.2.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"gitHead":"7db9d3e0eb7c4a1ce37c6c4fcb0d08a88796c809","_id":"webpack-font-preload-plugin@1.1.0","_nodeVersion":"10.17.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-PrcVvqCYU+Yu/wc5xU2DZautpGsHDUgwWaXvsgPjwdlL+NCbFJXXbby276FkCL424nIIGnh/eK3gvSk1AQe5lg==","shasum":"adc0f2a85f1d115d63fb8ffa3fc2aedf6ac4cb4e","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.1.0.tgz","fileCount":6,"unpackedSize":11870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOz/aCRA9TVsSAnZWagAAs84P/jy4aVPK02RPbq00Pyzs\nSvJk9W7QUKSdfcmsPHvWpMO+Y8YHyCPmOqmEw0Awe1hzDoLPklWZWJGWK+B7\ndERv3qEZlUbpyWWYBJEdDTxW8raFDcY/UDi+xhji0tcJGskVeGjMfeyYIrHi\nBagwIZ7kyliKZ6Jo1/83X3h60oQMKDu+GCk0iEjMir5SPG6zXAfl9T6Ooo47\nZrrfimQQjI3HO9k9fEwIffOGmRyS2TVeXorPDBLzN2EwYMuAXyjOPCD0kdfe\ng9BwKjAe46PKiFJv7ssel6emtB6s7DCa1RcyTulNudUjgXXJwkU+TQSQKkmQ\nTdjFnBbtBt1/ras2wQyH6efA1VsBqnX4c0xgfrrofsf3wb/D7VZsqenutr5A\nzA8Bks3Vea2i5NUNyADHM/wdx2rY11xPT5izY66gaeVodsolF+RPBa9+LLXS\narfI+PTy7J9ZVlg6YiTK3r8RJuKjzD8p7x5yswkR4VjoyTP7oYhXeDljlX4j\nWH/d68r2jHxEm05eW26mId+rFLw3UdpFmL0Y/TaALLJ2phmQCu4oUY3eqdc9\n6RFwODzKfkn2r5i6FkeA7MlKRpUtKm7Scuj3u4vwlBcesHw8E7DvQ4w6Ykgp\n+DF4PJN4wD7IuG6NbIcSSD4YeXRbm0o54esCBoZW5bUph25kp+k3jnrcDKnU\n4LP+\r\n=dORu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGasEHtVTzK5FWXsrUntUoGBmC909DdUg5oRuiQVaYcAiBn4kNN9ZJ1wSC97XlQyj7JJ9P+vqKuiSkdiaJJzseMBg=="}]},"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.1.0_1614495706068_0.5557903502535435"},"_hasShrinkwrap":false},"1.2.0":{"name":"webpack-font-preload-plugin","version":"1.2.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0","jsdom":"^16.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","devDependencies":{"eslint":"^7.21.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.3.1","husky":"^5.1.1","jest":"^26.6.3","jsdom":"^16.4.0","lint-staged":"^10.5.4","prettier":"^2.2.1","webpack-sources":"^2.2.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"gitHead":"c951757317a3889bfdbac902137019cacf1fb559","_id":"webpack-font-preload-plugin@1.2.0","_nodeVersion":"10.17.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-bUyA8FMVdXjUSJ68Hd+Ezkn/3LFFtYWBq9nNQlQxuJW8FMGCCIzi8q3o2Qd261DeFgyZRxJTnDHP1eTNxsCgTw==","shasum":"6b361134ac2c14641b65d76ed12e370ac522f432","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.2.0.tgz","fileCount":6,"unpackedSize":11906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVhyRCRA9TVsSAnZWagAAYXYP/21bvmZc/Z76BiK02dh2\nbzIIHhvPC6IhBZALkjtAbNY4MGJ6O3xQI+q7TkhgJqdp8L64uSZibWUZ08hA\nwEo5kedLgrtrla8eRrcMPe3zW9N1HAS7v4QoAwprwDlEAltnPY3t4uNl0Vda\nx40BhCVfl/2efprAN7YXKLQM6AEIm9sJ02ed/bKvECPzVKbOkNfCROm5K2mc\nWnXczyvGrK3s6ct6fmOswWG94vf5gi7wEfj8fBOnWEIeZsmRgQErjrYBtZ8i\nLbplmGvKypzV1x/03RtJ8sDuO5PepRQjex4wn0PqkzIIczpw19m1YF90G3iD\nOLHrHf2wCEZbA7pu5eEQllTaUhV3HtM4r/ynN2cgRQcuaACdThYrcNLrqA4Y\nH/eORYmmmz+QuCq21M6pMstL0Lx6sp/0JgGy7mlAQkqj7c5QnfiYOJ5qemJA\nz+bNCXmsChzBXz5DHhJnxo3oew/kyg1xz5R8UB7xF7zSCEVZDeysISbUz8b4\nFMlsDnRlNRY72pJqS/M4+zDgO9XlADC9DNjNVcd4UN4smrutAx8UOxpkZO/5\nV+ArX5xKOUExEEwMChaFyVAsQ4Ae2z0/ugXkY29wPsVnx+sqGpevnrjOp/hz\ndWeYQUs3VnwmAZPASRV38uF9pOH5AD6idsXQc4JORmUduR82oRv/EQ57rMGz\nn55j\r\n=u3sd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsM20pCIkrI8fQXJjsucXyJlNVroE4TVwXVtKSh1yVzAiEA61clElCEimwib4AQZzHnWks8U2jJX3+pQfscbgIyHbQ="}]},"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.2.0_1616256144949_0.3668324061989907"},"_hasShrinkwrap":false},"1.3.0":{"name":"webpack-font-preload-plugin","version":"1.3.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^16.5.3","webpack-sources":"^2.2.0"},"devDependencies":{"eslint":"^7.26.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.3.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"gitHead":"346f0ecb2a89a0fd82f4aa9ff80f295bb663e08b","_id":"webpack-font-preload-plugin@1.3.0","_nodeVersion":"10.17.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-TR5dc7RhNw0ghnWd5M3d2BYxzujE1hEOIu2NSOpFpMzOxaVVe0FZeXIwbJbU8D5lMPlxTYI3DyYaa1wn8Zs1/Q==","shasum":"8deaf3c43ffd68bf955b4608c0e2ab7c1d8f3f5b","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.3.0.tgz","fileCount":6,"unpackedSize":11906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgm/MFCRA9TVsSAnZWagAArlEQAIOCdDhOhjG1J4YEzgO0\n4aOCRbDIr6GDn8TLpiL9aqSvfns7mSNYMVNLOKmnhhsdmd7lAZTtcby4KaQy\nTu/wMcMZb5lfoIgQv0xPtZaW4MLAFB9/1s/Xz4m71cFYvH0xlHehx9Shiv98\n2KVRfQBWCrBGan8xMClY/fwq3VmRuvN2gfZrqiwhB7THtseHBFyD29Lg8OPT\n7HgOhRYSPPrMyhTRux3CBo4Z5+G3XjuRja8OE+SdBVGYwOdCT6LXVAOa9Cpp\nFxEESyvasSqH8m0V4Ip2zDkq/7wE+L7/TycTn6m6v18uU0r2YT7jqAv5cGQM\n+pRLc7YCNW7JX/5ZUfUpqwTOtkaEuj7cqG9+xbVvYnvM9cKABdfJRx6G6I3L\n7ksohXeHSiJr006loFYudeFf7sq2AzfkKG4ymr77cvh3EqqhWOr4HdCiBjNv\nntKrwIL1cvBeb8pUtFqoVruVjgWV2/FFerJrf4ax9AvZqB5hjSDYIDAKsG0F\n56PARbJyMu8IV3Q1AICE1p7ZRLbv6trRB9Lj2IZgefjcxzjmihf/sh6DvmTM\namt8H/VAIeDJKo8t+X8boD/5NVpMAt4pOYdtj4uFIjYWLMZ6RuJMWrTI2P0J\nZvMOBHqmgUzJ911G8pm1DJSHroIM53SkLOQ4iauuGDcU815NtIM55bkDO2EN\nAxpt\r\n=5q4g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcmD1k2if15O7TcAFHJI4FqyTPLJLF682OWokbdgQXfAiEAj1FxWHNxqnYGrj/YP8GW2wVcvRuIA4LfjhkfU1s7WXQ="}]},"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.3.0_1620833028638_0.4227596178132389"},"_hasShrinkwrap":false},"1.4.0-beta.0":{"name":"webpack-font-preload-plugin","version":"1.4.0-beta.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `String`\nDefault: `index.html`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `Array`\nDefault: `['woff', 'ttf', 'eot']`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `Boolean`\nDefault: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `String`\nDefault: `preload`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `String`\nDefault: `head > title`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"1fc31e62ad711a40d9ebf820c5b155ed6fecaac8","_id":"webpack-font-preload-plugin@1.4.0-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-dpyAYw043cvuOM01ZZlsWMWYnJ0nCdZ+8Mc5S8b9E1Qkokq8uHt+X8UBeh4m4UaTAWyoWxYAEHRZRv+MIsGBhg==","shasum":"5a91aeb7ceb2faac15fd4b070521c551793311ae","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.0-beta.0.tgz","fileCount":6,"unpackedSize":12763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtNEWCRA9TVsSAnZWagAA+5gP/jkSn4hUNUX+CZPfz750\nIFefOgl5kYDHZ3PmZb02GZy3vcsNcay8jfNDjAxC1JLxeotZcbSjHkjMnvD0\ntwKqh14Uz7+RA6xq4ll6byoLZzY2pUmskMWMgF+i26+2RKiOD0jZ2BgDFFTU\nsLcaBbzO8fQ5UouAxYjshM4luuD2SshniW9sodXaZV/PX7lz4wRh61L1vYOS\njsxHppl/42k5nIVL8073Jju7iQGcpdIhg9rJCGaPcRyUbiL1AFHJlyvMoZIF\nvRi5djsIVoCQHU0XdIhqOC6wq+Nk/V0PfWxTXnPtopZPX0B/DYJA1GryXg45\nyh3Hsvwq3acEH9St8aVrCMXAzadUlE3eQzhjdDhmzcwOzaRApk7x+RPejroF\nMbJK81n5ZVQahNNayiqXLYp/plBC4Sfd+zju5+rROCQ1uTnxlyQdZx4haY8v\nkkM+/PouKzKVw5+tEBQ4KpAr/Yogts17V2JkvdjNAOIAweDOkE9vMLAA3Emh\nk+6JIYOh5+97+TOSuz465JJhy4s9mAIXDwK4l7Q8RHQXshuaT05+NSTW6zn7\nHEBss8nGn0iD1XQXqJQkOs6VQXhMp/UJeZDCzSdp43dYY9+lUZ57gxOAJ7+D\nm3qa98r67Fe919mfrXtg6bK6gvs5e1bf4o9/IfRXs5vcEJ4sRUHHSk+kDQCE\nypER\r\n=+L5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfC8zOLPNX024y7t3cIdHdgA7IerTscy19C6C4o75b/AiEAtA4Iz7z+F0QoqeFihIOGYC38nua1Qz+9Z2K/yvkQnY4="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.0-beta.0_1639239958457_0.01883417279924071"},"_hasShrinkwrap":false},"1.4.0-beta.1":{"name":"webpack-font-preload-plugin","version":"1.4.0-beta.1","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `String`\nDefault: `index.html`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `Array`\nDefault: `['woff', 'ttf', 'eot']`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `Boolean`\nDefault: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `String`\nDefault: `preload`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `String`\nDefault: `head > title`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"cd2834051941b716e0e800d1e5283256a070ad4c","_id":"webpack-font-preload-plugin@1.4.0-beta.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-tleHHC3COA8HgAd8LY7v7F2YCJ8nuBsAUzD4fVPv9ojlBIOWwrOU0BPRUwAavkhmlDB5LmhWVT9NHrH3Vndc8Q==","shasum":"c915cdfd7741f02e080a5f30349529718d846095","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.0-beta.1.tgz","fileCount":6,"unpackedSize":13078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtNk4CRA9TVsSAnZWagAARsAP/3CaPd4nyGkwBmlYG8Ak\ngR94fEmymWql0c+YKnx6QHL7iyb3RjvjX4eJBzx+D/k03NkLqPv+cxAOce4k\nNhc+mNkYQVcbZ8lYK6klDmR0WDbvLJW7g5bOhqcicVxFvyq9n7FQnknqV2MM\nuSy5vYoFel1t82ryb0GIo8vrzvK5IjpdK0PqB01tH5hb37GZB3DSakxm775s\nLhzp9IIzHtzI/GZIfQshO3qEaJAJfr88wizIpzo6cmLfGxbm2AMTlTYGuYKa\nYy0zDtEyw9pNCgHF+qO3H/5nBly9h/+PjTY4ANQbfn4eECmxXdWk12iM8s1S\n6XqeJqr6sHBuZNgT2qFv6KQp5+gnqHVgdqZnee5BR+3pIHgDo9+zcmbzCabq\n1xAC9itBW/afW8QgNuNjwApiXk4GRTPScpv9yh4jIo+2b8Sqz0JeoEw37HSc\neubPrzlFGo/kRZlmHtdi7GyM5AuC8TZMP0+oZZTm7Jn0v/L8aUtcwP3+45/5\nKuFDWfro8LytPrs4Q0LPQXwmAjarkYOPfeN9ebN8F/4k8SOX53pFBI7tOQiE\nYQb9lTumbZFokZGvouruopw5GAQ5lm9FTPix7ghEnd3sVv72Vq65idB+++NQ\nUBDhX89JrwhrfVcU2kmgjFSdM6coKvQSbgj5I23lYwP/ND+ge7gD+Lzww1u0\ndjus\r\n=q/51\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3YD2HCw9BENYu40KG8WBYqCum3RXngwCwwKG0v0LfEAiEAuhs0jNunxBIz9F0HbAR4kJNLsmyPZpQOPc8JDZnkZrI="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.0-beta.1_1639242040543_0.22049296752459435"},"_hasShrinkwrap":false},"1.4.0-beta.2":{"name":"webpack-font-preload-plugin","version":"1.4.0-beta.2","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `String`\nDefault: `index.html`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `Array`\nDefault: `['woff', 'ttf', 'eot']`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `Boolean`\nDefault: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `String`\nDefault: `preload`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `String`\nDefault: `head > title`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"f948275ee3c1ad7ad9bb2529b5d2119ea1150fef","_id":"webpack-font-preload-plugin@1.4.0-beta.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-zpnjnwaS+6+7EaWAiSvwFNo34/EhZEWVx2zk8MscgZzm0EX1uWgjX2EIM7alk2pl1RBpUoUeBO5IMR7x0AYATQ==","shasum":"06857b80b8ebd3751a397f9b7db94b5e4b07c5cf","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.0-beta.2.tgz","fileCount":6,"unpackedSize":13495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtOGICRA9TVsSAnZWagAANUEP/10cwbUcDs4i0+w2PjeQ\nqH8lvjBOdHF5xHAfy33j9VONjfrub5TsTVVcC9syvQ3xxgHTvjZ/Vhmdbl0+\nOaOnXULS7ZrtAC05D9JjUmXFnPxIfFtOFJ8cMZs1mxG9Oqduep6T2gDUqr/I\n8mszUIJKG7myY+sLvz30EVF00nFTHnJOYL4CQ5j0bB3eQ/KidJu5PD0mnFYe\n4nwwIk++HPLlcoTasW3IqDJoJd/RfS4C+TEiDxFTuwrekCNh1JzAVO/ABf2P\nzP0SZ3arHipaPb9M8AzV2HmQZQ6Qt0zJJFALcLAk5lbqDJpln1ocjQtiPNmr\nUkp+PulgGn5Yn1ge8YPYrxggEw8vIqifP3gNgaLLOzpZmS7XOFurVdDvRgfP\nfFxJp1Ey5fCSG0bqsQk2uhHFVZWX288HzUp9sWBBIbkPvMSOckC63Oafb4ah\n0w4BPbkGJPkV7SRzXNzwuOyo3BpmoDFdiaaQ2L0GKL2ccasY7qI61IoixU1v\nqLooivqAPD0qduNAyIm+opdQRMwaBSne9X3H/ivBmsvCLosChr+2LjBHZWeT\n/8CL8S2fMrulvXg4Dd3xy/0fEuFliZBGQeXh+iovhpvmIOGWCvRhWGFoomT8\nZoK0dhTxdSBZCptVHqaq5AWbf/v1w8xmjYefQpjpbIEstxApCh7gDKqs1Fjk\nveJG\r\n=cjg5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoRE6PE37LgVwAunBOu5BeQU8fleCht5ECOi3OyMLeOAiAsMA2RX3OuwkHnXLXdm9tzJp6M1Mc3dppu25RLUDca5A=="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.0-beta.2_1639244167905_0.07244474928143108"},"_hasShrinkwrap":false},"1.4.0-beta.3":{"name":"webpack-font-preload-plugin","version":"1.4.0-beta.3","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `string`\nDefault: `index.html`\nOptional: `true`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `string[]`\nDefault: `['woff', 'ttf', 'eot']`\nOptional: `true`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `boolean`\nDefault: `true`\nOptional: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `string`\nDefault: `preload`\nOptional: `true`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `string`\nDefault: `head > title`\nOptional: `true`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\nOptional: `true`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n### `filter`\n\nType: `string`\nDefault: `undefined`\nOptional: `true`\n\nExpression for allowing more granular filtering of the font assets for doing a preload/prefetch. The filter is applied on the font assets selected by the `extensions` option. If the filter is a string, all the font assets which contain the string as part of the name are included in the preload and rest are ignored. In case filter is regex, the font asset's name is tested to match the regex for allowing preload. If you don't pass this option, all the font assets will be preloaded.\n\n```js\n// To only preload font's which have string `app-font` as part of there name.\nnew FontPreloadPlugin({\n  filter: \"app-font\"\n});\n\n// To preload fonts which start with `mui` or `app` in there name.\nnew FontPreloadPlugin({\n  filter: /^mui|^app/i\n});\n```\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"95c8cbaae2eb660a4ddac2779edda84eef9c391e","_id":"webpack-font-preload-plugin@1.4.0-beta.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-8uIK55G2GNsFxISaiLyg43kP1YhCvNOuMVPcwsMI5YMaoq0m21uSif0pfGOf4jtHoA11bZCL7jogAtdQreX95w==","shasum":"bf0eb40d68d4807e407f3d743c54da3fc6c168b5","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.0-beta.3.tgz","fileCount":6,"unpackedSize":15665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtuVpCRA9TVsSAnZWagAAuUAP+QGndR3nIqOkPzUZHdiX\nUi64IJzcCM/n3ZtGbtGWra1A98EK7C6Sr+Hy80b25UJbcKiGSU48pvXoXkVu\nxc7Zh0LAnURs1u51rCVLfXVCDd5WPpdh0G4qsdjIGGnpf26BlDQNOVahy7HV\n4n9meLy6Km0+sdtSARtQybTO77RCvb6fW4JbozRZ4WmjygPdRsoIQ9DPRp8i\nuBVFMkbUzXJgkM5G44JODpuPYg1QTJc128IWNvDzzDAkcDU+8RBL2i/l8lsV\nXMm00VvMISYsnx3vRlFTwhDGIuLa9QDByI95tyd8/pOoiCChus3UpmJBdYjQ\nip7j8wirwTSYmYCclBy8BOpSvmL41QRXGtu4wA7td/Us8iqxrqM3Mm0odvNQ\nsolqbDFrxQdlEsjisiiA+bATtT5Cm+5MiuFkeTjIKNClAM6e1M5b3uIsZT6U\nfRPxjqqpjALDHD8LIR9R8AcSoV3iuwIjIxZfzLLH3hGBUCVvgf8840UbocKt\nW6J3uBVTjwgC7MHOtwhCpv9PprBynb6d/H/tmwZJJxqgZhfOkg/lSGNp2eg0\n9g2WUXpDaU8B+9IX7N6vJ1IANe10+D6cP7d5FbeJMSXiCJUVqxfU1AgV9zB7\nAvL3CnL60uMfU+lPVeeLIUqSAdTWPfdWT5HDmS8fRH2PfLXILkCrlF2uFGSd\nFB0N\r\n=sf+j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDExSWIjHHgd26gz7HDkC3kccQLLJsoaYQdHRJarSUCSAiBr2B01g7Ai5KMisJoTgkHpCC1FU2XvqA3CLf0Ent3DdQ=="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.0-beta.3_1639376233628_0.24147970567269872"},"_hasShrinkwrap":false},"1.4.0-beta.4":{"name":"webpack-font-preload-plugin","version":"1.4.0-beta.4","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","@types/webpack-sources":"^3.2.0","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `string`\nDefault: `index.html`\nOptional: `true`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `string[]`\nDefault: `['woff', 'ttf', 'eot']`\nOptional: `true`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `boolean`\nDefault: `true`\nOptional: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `string`\nDefault: `preload`\nOptional: `true`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `string`\nDefault: `head > title`\nOptional: `true`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\nOptional: `true`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n### `filter`\n\nType: `string`\nDefault: `undefined`\nOptional: `true`\n\nExpression for allowing more granular filtering of the font assets for doing a preload/prefetch. The filter is applied on the font assets selected by the `extensions` option. If the filter is a string, all the font assets which contain the string as part of the name are included in the preload and rest are ignored. In case filter is regex, the font asset's name is tested to match the regex for allowing preload. If you don't pass this option, all the font assets will be preloaded.\n\n```js\n// To only preload font's which have string `app-font` as part of there name.\nnew FontPreloadPlugin({\n  filter: \"app-font\"\n});\n\n// To preload fonts which start with `mui` or `app` in there name.\nnew FontPreloadPlugin({\n  filter: /^mui|^app/i\n});\n```\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"a95aff8da926c4f66575e24ecc0e65218c53b533","_id":"webpack-font-preload-plugin@1.4.0-beta.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-pNARVMmp1TNU1TjMfBauo01vWP+8TNXt6DjiK9t9TSbWzycVM4ucd3yfJC7yLMd+BBONgv9db3sAdnrryL/kCg==","shasum":"392038c37e67b5810841e544603ec71bff7aa891","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.0-beta.4.tgz","fileCount":6,"unpackedSize":15759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtv09CRA9TVsSAnZWagAA374P/RQUwBmBMby19qsjORZh\nWMfrvNL5Za/39GUQ94nnagRqRlIX474RZuq0W/FvCI6GTHyDiFsNJxNosNz7\n6zr6aL0TVUkBFZRWOJ8dDZ+SJ/WfeOLgtUucNUvvegayZr7fs2hfudoJGpdA\n0SBOpAF0YzkrmcDVrbjmo+0WseaM5OAsCK3N6jcgBq70fynPSpKDiDNqvRaD\nwYHCqPrNHRBhcPGOGdWsm+I04E4HUa2mVftqe2rkJVKmjqECmdlpyAy19Bbw\nO8WqT7YjvKofTsX/5i0/j5OsloHftrYG2v2hoaOo1fW/GG+YAWWdiyQx97T/\nRlwGSDmaGwrOHtPRb8m9gkrVk79/k3gX5JO29LCdeGw/4VVD4EQMMbpz2ElF\ncgjMPGGH8yYtE7LxX3PCtzNlApk9ErnR/tsVu4wakiMxyIGHHIXrX5LBU4Pg\nqlQnGS+o2GRPP5iWT+ThmyBet7VTdpndCU4pDU7Qfq2O7u3RMneulEtVGYWL\nNl5iw/I0gkY/VEqd2Dy2AokbupDRg0t8fy3tAp8aN29EncVzUIGKYNge+1Og\n4xmdywXvlhgvKELvvjD/TJLy3XYGj6Is3DakyVH11SJnWbKczQAxncyMMFzg\nU+8gA0o1OZMRKuzgiPZMcoFx1bJPZpGCWPsjJI8tju4jpKzAEkbbNl6zkNkv\nnCPg\r\n=2QuM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpUc5r3wxQrWy31t8ynqNvpE2KqM+uN84uc/Q3an3piAIhAKaSAaIW6rwvv/2gBWqdEblvtY8t3/bwrFsnuZ1CxckS"}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.0-beta.4_1639382333075_0.4906392169062246"},"_hasShrinkwrap":false},"1.4.0":{"name":"webpack-font-preload-plugin","version":"1.4.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","@types/webpack-sources":"^3.2.0","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"gitHead":"d26fec79f6a7b97098e869674f078b77fb094f44","_id":"webpack-font-preload-plugin@1.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-whXBgNhtCoJXpdrUuyMmyZBPChbNsJ/u9uiRk3EmaTpXwaJQ3+fozu7H4OiCQZSG4AcqLxoMhOdvDz5A6+W2wg==","shasum":"c1e1e66122c17e3c21cad518ab938b99eed5766a","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.0.tgz","fileCount":6,"unpackedSize":15752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtxWxCRA9TVsSAnZWagAAgzkP+QHf0Z3ccrnOhg1uJJbY\n25RCdhoXc+SD5OQth7cs/V1clmc+PLyt/q05o0HqIfz0NVQj4Hif82za9REK\n6pJ7Kp6crOuEira4RRSSFSAyauyB0xStEbCa/8f03ckdQf8VDheCjjmOuvYy\nNcSH0mjrhnrdV2xKImyT/6Kgx7tOO1sUyjo4adBKWLwgaHZcjf9NXIHVd8fU\nIfJd3K48wMsAs7CvOn7bZloUHrFwKGCQEDWZ+CFX28cCZm6n4sZsbY501ETw\nzTq2+mML4A4JxveeCGWa5lKEq8iQn3AKOPsTjhjimQ5eT5XxyKIuTtpQO0pY\nOY72uFMpE8U2sMmvQcDMV4I+EjBRzE5rSuF0gMlLbMSQlei5S3s9u8v5Ph0s\nBEe64C9mzcH63q8aajSYDeNUJ5bAJcD7WqJV4gx40bK8k/bEWGwK+nva35+h\nhPWzQIWKyPwhsEj/4bFGKu23DrQmNdz51/6ObLvGtYmz/fI5XgbtXre0SVFp\nVqblKYnomiCGNRsNtJ6BjTrbhiIRTI+qONjsXhjX6cA7rQNv9BUxNjWhAgDp\nXHDTMS+8PrQ4mgWqD+2pw8VUkPozQLFs7PmIfNObxUlZNzf8mQUpyZ2vp0lc\njReO7URg2uqHXZGBsaeQLmoRmklXb2AZfr6j05Lzs4Il8+PgOKEOUzDMN2n+\nf8FG\r\n=opRw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA563GAq6qfNIoZ+C2GYWLeYPTbR8AVJpahZycFvYpU0AiAPpJ4v/OTp+fOsIhFshRcMpfl3dHYQ79Quvpjp+Il0Ug=="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.0_1639388593781_0.2858351256163081"},"_hasShrinkwrap":false},"1.4.1-beta.0":{"name":"webpack-font-preload-plugin","version":"1.4.1-beta.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","@types/webpack-sources":"^3.2.0","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `string`\nDefault: `index.html`\nOptional: `true`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `string[]`\nDefault: `['woff', 'ttf', 'eot']`\nOptional: `true`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `boolean`\nDefault: `true`\nOptional: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `string`\nDefault: `preload`\nOptional: `true`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `string`\nDefault: `head > title`\nOptional: `true`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\nOptional: `true`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n### `filter`\n\nType: `string`\nDefault: `undefined`\nOptional: `true`\n\nExpression for allowing more granular filtering of the font assets for doing a preload/prefetch. The filter is applied on the font assets selected by the `extensions` option. If the filter is a string, all the font assets which contain the string as part of the name are included in the preload and rest are ignored. In case filter is regex, the font asset's name is tested to match the regex for allowing preload. If you don't pass this option, all the font assets will be preloaded.\n\n```js\n// To only preload font's which have string `app-font` as part of there name.\nnew FontPreloadPlugin({\n  filter: \"app-font\"\n});\n\n// To preload fonts which start with `mui` or `app` in there name.\nnew FontPreloadPlugin({\n  filter: /^mui|^app/i\n});\n```\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"ef5990a72f482be17b3552269ef4830441c7ff87","_id":"webpack-font-preload-plugin@1.4.1-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-drlGKqLvddb0wk/JaO7Fn8Dq03gnFf2f74luhm1z7r8GykWU/NEb4ns52C0ZGUCV0Mg94yNq7YGi3cOZMkkCvQ==","shasum":"fa69cdd6d1b1b18df1a4e977f9219b06461b6842","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.1-beta.0.tgz","fileCount":6,"unpackedSize":15917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtx0aCRA9TVsSAnZWagAA7mYP/0zfAiwno04a8c5/WFYA\n72Czq17IpQqY2wTtYcQAOK1hQpbwDmD4oKwHov3hiZlBN4ngdsxPszDHaDA7\nQdoYgC5DbW1noICyhWENqs6SvBw/XzJJYVblfnXrI9sDmwxWUvp9RUPyPO+k\nUWegmHB+PZ2PCe4CA64dWurtuYBn6m77CX8vE3HrhhQVyXOP8lDU5147HlJi\nIeaae7njoy8gPTQb2eeBSscI8nSGGg78fzx7HoDHwedutJl0OL/xrKKwNr3M\nxGLpK76c+OrtGJJbMZXYAdo5KrtQtv5llyeHqjiho2/18XhkJvRJXDIAFHnJ\n+7MdsxzjZYwu7hOAn3BIDJvbyMMqIPImtGM0h8aDSTDRfgVmrP9BWRFHlUa1\nErCZBKfpKNWJCsas4mwEdWwNhfBgrLBt1Js327bQL5PI9Fz7UQjQaRkLutV3\nG35uY2enoCwJRYP51iS11g03xX2aZwS+DKs29SrrT2ZqfoMcCKFMz4NsFKY+\n0gzQxjPI39TS8TvYLBkwTyaYrJM5w5EPvmyKw05Sb0x4xpnE3VJGsy9iqj8g\niUxsFoIXZvJ9FyIEISJFgiKHN0W7JpU/8aawjXEc24cUIz+DoiMqXUna0QDy\nnlunkFQRZHRDBdscYSq9krJCBp7F5XTQyxK51TWXmGPuEMY/FZX9mOzgecmB\nhfsH\r\n=T59b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPOeQFkw3hIjJkvSnfYh3hTZfVRzNuXmX6jDK4+m4/yAiBkPdOL8cqAxsMYo9RfoLFLRJCCYOvOGIgNr6UMKMEPkA=="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.1-beta.0_1639390490010_0.6457616664292847"},"_hasShrinkwrap":false},"1.4.1":{"name":"webpack-font-preload-plugin","version":"1.4.1","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint ./src --fix","test":"echo \"Error: no test specified\" && exit 1","pretty":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\""},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@types/jsdom":"^16.2.13","@types/webpack-sources":"^3.2.0","eslint":"^7.26.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.5.1","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty","*.{js,json,md}":"npm run pretty-configs"},"gitHead":"1bcba82c022d64bebd3814871da48bf21a102fde","_id":"webpack-font-preload-plugin@1.4.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"dist":{"integrity":"sha512-hLHzJj2AydnP6ZLoBpuDTHJfQIrRy0eGYvR2ACeC3Scy4WTdj6qLAnC1hFgabASGqyyf9DaPjkjMZmeb/ZEVPA==","shasum":"f803f838e25894717f2b592559e883ba5f6425ba","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.4.1.tgz","fileCount":6,"unpackedSize":15904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuD0aCRA9TVsSAnZWagAAS7UP/0u/E842zv5eA16n9C7K\ntfyO1GwQeevPpPIVScqpOq98G6Vfojw+GPrN94xzfoIjjlQ9xgxgKBSUoPz4\nkKzJOJR4OUJVoSOFVVge9uVJX4hgOm9rwTPpmV1JYQdRFFFA2eObVg5sEc/C\nvZQGnyQiR5JtLQjgwiq2GUE3OBX2kZctkLsKwqoT/OwP2aXEElZzcK0UbxeZ\nKsqUxENmcon/0iP8Vsph3W3fMEIWMUEQBlTtdZunjp9ryNuN3ZwvC44JQIjt\nYMkC9JxbukxaZmKc1Wmnet08p9CSuYdI5OwJ/ZQrIOPY9XfcjjRf17UVRodk\nNpp7PgyEb58reYyhj7xN3DoI6cYJDvAQWYr+ysVoOJeUBXUArgb4AftF38eS\n3j8HADsrqmfm/hzGjlbIn3NaGTt6F4L0M09luM5Cot/Hpv/6d4SUbuFv5H+6\nqslxhJPipISGb0XjCWTwpSUOyBDLvy5XW/yNXcUFK7KLpedZzhWSEuEioMtT\nel7cuUrshVmHtVwQbrJ2h4jSX9SgliBvKQGC7+aF3LNeNUF0/SjvZTKcLYlm\nlon4J+wKWenHs7EVWMEhBzDwgLg7korddOpgOdVs6uv+d+anCMSAM3ZJVsxA\nu5tQkySOGJizy7TDD6AZPRRslalnuPW1UsaY5MbTaRJZTiocFX0/eCjHwK7j\nFOUg\r\n=z0qj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsLCcTlnivlAx4MPRJUs1CFmAjKQ8Q0fbdhxJyUHrAlAiADsv9F1uqh+LQjepR0MRnbrVPxDRDwe7m4nAyMdaqhdQ=="}]},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.4.1_1639464218406_0.5833847366659086"},"_hasShrinkwrap":false},"1.5.0":{"name":"webpack-font-preload-plugin","version":"1.5.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"src/cjs.js","types":"src/index.d.ts","scripts":{"lint":"eslint \"{src,test}/**/*.js\"","lint:fix":"eslint \"{src,test}/**/*.js\" --fix","test":"jest","test:watch":"jest --watch","pretty-src":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-test":"prettier --write \"test/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,json,md}\"","pretty":"npm run pretty-src && npm run pretty-test && npm run pretty-configs"},"engines":{"node":">= 10.17.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^4.0.0 || ^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0","webpack-sources":"^3.2.2"},"devDependencies":{"@babel/core":"^7.16.5","@babel/preset-env":"^7.16.5","@types/jsdom":"^16.2.13","@types/webpack-sources":"^3.2.0","babel-jest":"^27.4.5","babel-loader":"^8.2.3","css-loader":"^6.5.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-jest":"^25.3.0","eslint-plugin-prettier":"^3.4.0","html-webpack-plugin":"^5.5.0","husky":"^6.0.0","jest":"^27.4.5","lint-staged":"^11.0.0","mini-css-extract-plugin":"^2.4.5","prettier":"^2.5.1","rimraf":"^3.0.2","typescript":"^4.5.3","webpack":"^5.65.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty-src","test/**/*.{js,ts,json,md}":"npm run pretty-test","*.{js,json,md}":"npm run pretty-configs"},"gitHead":"ac83d812e7096e4ca3bcbc3a7c8f5e48db28d6b8","_id":"webpack-font-preload-plugin@1.5.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-/Nh6MNa7/rbu3ZcqSR1SxB+G5XaITu7U2yZO5INTsVRpVlMLQmHQZCoDt4PP+iFyBdvBCDbA0CImRXHarQ0wpQ==","shasum":"c19029e1df2d8e37c55815ba89533d35592b3560","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-1.5.0.tgz","fileCount":6,"unpackedSize":16780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvFT2CRA9TVsSAnZWagAAi6gP/3+x2bBR9w6vdoXGgBW7\neriH+MOZY6PPmsPiCQNqCddH8zZtVeQor/RAfdVTLZpJ3eCmt/gGanm+v5X/\nIlCtbrHuTW30cF4TLSjIjUjawCHouj9N6ds3CaFW+yYSRV1tb6hQUX71OFG+\nSQvxBsTcvTaUv14je3rHD5G1yKenv36E8N29xCQC0Jpdz+PLws95IXhYrlzW\n6ra8Vo0JiTTMZYFD9D6Z2ZcBtbW0ayrT4fTET2o0LjXQ0pkQV8CVq+KnGFWy\nSMnHKrsYpMxVaYsPM9D3vN6Z8AQpPzSso2ObFL+nbOvxnRBCcqXqD0DQvZDe\ntqOnp760H0zbI7dXGy7d0EwVKcOVWKpw/+/6R5B4U48Q4l9zw0OzeFfjhjTu\nOq1ZMcpAm1w1+pygY4paBmRL00n8AJBmnmXCrhdPACJDVuE/AXmM1EwaF5RW\naaZiWd8eHeTGVV9v7h3vAVHBfiUGkH/rprOg2bG/zrTjCM0KyHplCextkhNo\nEcRSRPuMaAUHCr3BxxQJ7a1/snDiG3mH+5Z2npIPhfjDA7FaJXg6sckSeCJW\nJPCj37c6tqueL77FeUzuvKbaSBv057KLFjfR8zKEf8DQVetB03aG/d0OvpDR\nJvEvHqR650Jg9nLCP9DJvj+lXeVVZKFLMmb9PqU7nBLsCW1EsPmfzraWaSyN\n59Ym\r\n=Rxh6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUAZnswRDEMqxD3KKtsBW6TP6Ak2rYSOedYJKWQT/iLAIgKD61wdaVUvA1+XvyfstuP8YKJIksdv+B9F7gXiK3pog="}]},"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_1.5.0_1639732470757_0.046481280289035976"},"_hasShrinkwrap":false},"2.0.0-beta.0":{"name":"webpack-font-preload-plugin","version":"2.0.0-beta.0","description":"A webpack plugin to allow preloading or prefetching of fonts.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"clean":"rimraf lib","build":"tsc","prepare":"npm run clean && npm run build","lint":"eslint \"{src,test}/**/*.js\"","lint:fix":"eslint \"{src,test}/**/*.js\" --fix","test":"jest --config ./jest.config.ts","test:watch":"jest --watch --config ./jest.config.ts","pretty-src":"prettier --write \"src/**/*.{js,ts,json,md}\"","pretty-test":"prettier --write \"test/**/*.{js,ts,json,md}\"","pretty-configs":"prettier --write \"*.{js,ts,json,md}\"","pretty":"npm run pretty-src && npm run pretty-test && npm run pretty-configs"},"engines":{"node":">= 14.16.0"},"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"keywords":["webpack","preload","fonts","prefetch"],"peerDependencies":{"webpack":"^5.0.0"},"author":{"name":"Satyendra Singh Naruka"},"license":"MIT","bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","dependencies":{"jsdom":"^19.0.0"},"devDependencies":{"@babel/core":"^7.18.5","@babel/preset-env":"^7.18.2","@types/jest":"^28.1.1","@types/jsdom":"^16.2.14","@types/node":"^17.0.42","@types/rimraf":"^3.0.2","@types/webpack-sources":"^3.2.0","babel-jest":"^28.1.1","babel-loader":"^8.2.5","css-loader":"^6.7.1","eslint":"^8.17.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.5.3","eslint-plugin-prettier":"^4.0.0","html-webpack-plugin":"^5.5.0","husky":"^6.0.0","jest":"^28.1.1","lint-staged":"^11.0.0","mini-css-extract-plugin":"^2.6.0","prettier":"^2.6.2","rimraf":"^3.0.2","ts-jest":"^28.0.4","ts-node":"^10.8.1","typescript":"^4.7.3","webpack":"^5.73.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,ts,json,md}":"npm run pretty-src","test/**/*.{js,ts,json,md}":"npm run pretty-test","*.{js,ts,json,md}":"npm run pretty-configs"},"readme":"[![npm][npm]][npm-url]\n\n# webpack-font-preload-plugin\n\nA webpack plugin to allow preloading or prefetching of fonts.\n\n## Introduction\n\nThe [preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) value of the `<link>` element's `rel` attribute lets you declare fetch requests in the HTML's `<head>`, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in. This ensures they are available earlier and are less likely to block the page's render, improving performance.\n\nThis plugin specifically targets fonts used with the application which are bundled using webpack. The plugin would add `<link>` tags in the begining of `<head>` of your html:\n\n```html\n<link rel=\"preload\" href=\"/font1.woff\" as=\"font\" crossorigin />\n<link rel=\"preload\" href=\"/font2.woff\" as=\"font\" crossorigin />\n```\n\n## Getting Started\n\nTo begin, you'll need to install `webpack-font-preload-plugin`:\n\n```console\n$ npm install webpack-font-preload-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**webpack.config.js**\n\n```js\nconst FontPreloadPlugin = require(\"webpack-font-preload-plugin\");\n\nmodule.exports = {\n  plugins: [new FontPreloadPlugin()],\n};\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `index`\n\nType: `string`\nDefault: `index.html`\nOptional: `true`\n\nName of the index file which needs modification.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  index: \"index.html\",\n});\n```\n\n### `extensions`\n\nType: `string[]`\nDefault: `['woff', 'woff2', 'ttf', 'eot']`\nOptional: `true`\n\nDefault font extensions which should be used.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  extensions: [\"woff\", \"ttf\", \"eot\"],\n});\n```\n\n### `crossorigin`\n\nType: `boolean`\nDefault: `true`\nOptional: `true`\n\nIs the font request crossorigin or not.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  crossorigin: true,\n});\n```\n\n### `loadType`\n\nType: `string`\nDefault: `preload`\nOptional: `true`\n\nType of load. It can be either `preload` or `prefetch`.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  loadType: \"preload\",\n});\n```\n\n### `insertBefore`\n\nType: `string`\nDefault: `head > title`\nOptional: `true`\n\nThe selector for node before which the preload/prefetch links should be added.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  // Add the preload statements before any other <link> tag present in html\n  insertBefore: \"head > link:nth-child(1)\",\n});\n```\n\n### `replaceCallback`\n\nType: `Function`\nDefault: `undefined`\nOptional: `true`\n\nCallback for doing custom manipulations to index.html for special use cases like templating or server side rendering. This callback would be passed an `object` as parameter with 2 keys:\n\n- `indexSource`: Full source string of the index.html.\n- `linksAsString`: `<link>` tags for preloading fonts as a string.\n\nThe consuming app can use this information to generate the final index.html\nand must return an updated string which would be used as index.html after\nwebpack build.\n\n```js\n// in your webpack.config.js\nnew FontPreloadPlugin({\n  replaceCallback: ({ indexSource, linksAsString }) => {\n    return indexSource.replace(\"{{{links}}}\", linksAsString);\n  },\n});\n```\n\n### `filter`\n\nType: `string`\nDefault: `undefined`\nOptional: `true`\n\nExpression for allowing more granular filtering of the font assets for doing a preload/prefetch. The filter is applied on the font assets selected by the `extensions` option. If the filter is a string, all the font assets which contain the string as part of the name are included in the preload and rest are ignored. In case filter is regex, the font asset's name is tested to match the regex for allowing preload. If you don't pass this option, all the font assets will be preloaded.\n\n```js\n// To only preload font's which have string `app-font` as part of there name.\nnew FontPreloadPlugin({\n  filter: \"app-font\",\n});\n\n// To preload fonts which start with `mui` or `app` in there name.\nnew FontPreloadPlugin({\n  filter: /^mui|^app/i,\n});\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/webpack-font-preload-plugin\n[npm-url]: https://npmjs.com/package/webpack-font-preload-plugin\n","readmeFilename":"README.md","gitHead":"fd05aaed9d09ebcf49d4b21b6bd04625cadf4f2d","_id":"webpack-font-preload-plugin@2.0.0-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-9AMSwSNJ7JMaDBXy+KBsgKvbjGD2ePqO2TQq+bk34I2yBmUr8GvySQDGN5Or4qpN4JN4x7SoL5+U3Wruvw1rSA==","shasum":"e2c62ca61fbed565a5ebfbd066e1ee8b82de0129","tarball":"https://registry.npmjs.org/webpack-font-preload-plugin/-/webpack-font-preload-plugin-2.0.0-beta.0.tgz","fileCount":7,"unpackedSize":22023,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJuh6B0sCRDYsPGKmY42AvFFyobwDM1+d9xNuKxYdyuAiEAklJQPWZ5xK8DudF4FvUgJGqjWKOjwtUs+2kSGv0phjs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi59y5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp51Q/+KtimFsF07TWaV+zhJSt5CjzZxrRGksqwnVPyKPWLLpGwMUuK\r\n4mHZjOGa/OAadZTlvQz8OhWRclkby8eYdOscFcGv/WKih8Clz4DoFjmqiL7l\r\n0IoBgbwuEvJ/Gg+RX9M8IUugF5cgglav00/N1gAEJNIUpLU1PhVVqsmUjYcx\r\nB+Kl5uMoQpRypgkemF/Cxrmw3muZhtKC4BRZP+kooEz5rlEFdH+fQc8p0ggh\r\npQWuJ2YbNkvMaNeCdbYjCuEg4gjCrvxnsWxgcr2c/2cOSfs5CKB2UWLiFHyt\r\nSj92h1mz8ZU4e3xlOwaSdMIigaV9/5axMvg1aZeUp/YnWwd4b0WiBQZz7Omr\r\nd7kQZ+yxy37sCl6OenXtTYtQIhYtnLkSdXqZZi5KVkOkIzdkQmTMCmCDp0sh\r\nrkaHYvvrJKi5aDrUF5Jyb3rffqy/GwNJ79b6e11Ag/cpbajphQgKtIs5L/mG\r\nN7dPkwWYID36/p9p1YZmUMgmQMYi2RKLFpgUYtbmo/u6PMNize9vSz22De5k\r\nFVeH8jICD9eBbrJSBObSLlgWwkfM432m6559eOyXUyNBv5xb14IOTAHLtvMi\r\njVSymzYXp+kNkqRXUbN4tLF1lFriLl5Pr7I4jT6hY2xMLN+FvJGghdPCE69N\r\nSFdjVsow1630rR9pvV2WhgT8GZbFmNTSzLo=\r\n=K372\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"},"directories":{},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-font-preload-plugin_2.0.0-beta.0_1659362488848_0.30208075124064004"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-21T17:01:17.594Z","1.0.0":"2020-02-21T17:01:17.705Z","modified":"2022-08-01T14:01:29.122Z","1.0.1":"2020-02-21T18:07:16.268Z","1.1.0":"2021-02-28T07:01:46.180Z","1.2.0":"2021-03-20T16:02:25.085Z","1.3.0":"2021-05-12T15:23:48.762Z","1.4.0-beta.0":"2021-12-11T16:25:58.583Z","1.4.0-beta.1":"2021-12-11T17:00:40.716Z","1.4.0-beta.2":"2021-12-11T17:36:08.072Z","1.4.0-beta.3":"2021-12-13T06:17:13.774Z","1.4.0-beta.4":"2021-12-13T07:58:53.244Z","1.4.0":"2021-12-13T09:43:13.934Z","1.4.1-beta.0":"2021-12-13T10:14:50.224Z","1.4.1":"2021-12-14T06:43:38.553Z","1.5.0":"2021-12-17T09:14:30.895Z","2.0.0-beta.0":"2022-08-01T14:01:29.038Z"},"maintainers":[{"name":"satyendra_singh","email":"sn.satyendra@gmail.com"}],"description":"A webpack plugin to allow preloading or prefetching of fonts.","homepage":"https://github.com/sn-satyendra/webpack-font-preload-plugin#readme","keywords":["webpack","preload","fonts","prefetch"],"repository":{"type":"git","url":"git+https://github.com/sn-satyendra/webpack-font-preload-plugin.git"},"author":{"name":"Satyendra Singh Naruka"},"bugs":{"url":"https://github.com/sn-satyendra/webpack-font-preload-plugin/issues"},"license":"MIT","readme":"","readmeFilename":""}