{"_id":"beasties","_rev":"4487903","name":"beasties","description":"Inline critical CSS and lazy-load the rest.","dist-tags":{"latest":"0.4.2"},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"time":{"modified":"2026-04-09T01:16:56.000Z","created":"2024-10-25T12:24:20.641Z","0.4.2":"2026-04-08T09:02:45.797Z","0.4.1":"2026-01-22T10:54:15.355Z","0.4.0":"2026-01-20T16:13:32.498Z","0.3.5":"2025-07-08T11:25:49.195Z","0.3.4":"2025-05-21T15:58:44.863Z","0.3.3":"2025-04-21T11:04:18.757Z","0.3.2":"2025-04-07T18:16:32.020Z","0.3.1":"2025-04-06T23:57:53.305Z","0.3.0":"2025-04-06T23:23:45.956Z","0.2.0":"2024-12-05T22:04:57.021Z","0.1.0":"2024-10-26T15:14:10.413Z","0.0.26":"2024-10-25T20:39:46.632Z","0.0.0":"2024-10-25T12:24:20.641Z"},"users":{},"author":{"name":"The Chromium Authors"},"repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"versions":{"0.4.2":{"name":"beasties","version":"0.4.2","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"dependencies":{"css-select":"^6.0.0","css-what":"^7.0.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3","postcss-safe-parser":"^7.0.1"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.6.1"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.4.2","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-NvcGjG/7AVUAfRbvrJmHunDQS9uHnE6Q/7AkaPr8oKE8HjOlpjRG5075z/th2Tmlezk3VlaaS8+X9I1RwHJMQw==","_resolved":"/tmp/929cdea4d79ed8e1625f596cfdfc7477/beasties-0.4.2.tgz","_from":"file:beasties-0.4.2.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"shasum":"2e2eab4bda4017e3bc2c5f91c8d69cb3f456d6bf","size":27730,"noattachment":false,"key":"/beasties/-/beasties-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.4.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:62fba4a9-c350-4326-a1ce-bc69bbc8981d"}},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.4.2_1775638965655_0.9540827360536033"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-08T09:02:45.797Z","publish_time":1775638965797,"_source_registry_name":"default","_cnpm_publish_time":1775638965797},"0.4.1":{"name":"beasties","version":"0.4.1","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"dependencies":{"css-select":"^6.0.0","css-what":"^7.0.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3","postcss-safe-parser":"^7.0.1"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.6.1"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.4.1","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-2Imdcw3LznDuxAbJM26RHniOLAzE6WgrK8OuvVXCQtNBS8rsnD9zsSEa3fHl4hHpUY7BYTlrpvtPVbvu9G6neg==","_resolved":"/tmp/1677939125e01d6d4947d716b3aa2b78/beasties-0.4.1.tgz","_from":"file:beasties-0.4.1.tgz","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"shasum":"5c0cc2a89ba3b329d2e75fdd2e494ad661fdd954","size":27403,"noattachment":false,"key":"/beasties/-/beasties-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.4.1.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:62fba4a9-c350-4326-a1ce-bc69bbc8981d"}},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.4.1_1769079255230_0.3741666950407181"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-22T10:54:15.355Z","publish_time":1769079255355,"_source_registry_name":"default","_cnpm_publish_time":1769079255355},"0.4.0":{"name":"beasties","version":"0.4.0","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"dependencies":{"css-select":"^6.0.0","css-what":"^7.0.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3","postcss-safe-parser":"^7.0.1"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.6.1"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.4.0","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-PPlV0h4hHCjXLIL92saq2kRodoxunksRCuQTTyWY7+uqkErFW4xq5fvHXus1wFyHpow0Xg9fbHr5QiUoRaXORA==","_resolved":"/tmp/506b62082b18119b8d18245fc0a85f8f/beasties-0.4.0.tgz","_from":"file:beasties-0.4.0.tgz","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"shasum":"e17015df70de3af22db1a43c2c23d609bc4e99c4","size":27361,"noattachment":false,"key":"/beasties/-/beasties-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.4.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:62fba4a9-c350-4326-a1ce-bc69bbc8981d"}},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.4.0_1768925612354_0.6487294372072883"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-20T16:13:32.498Z","publish_time":1768925612498,"_source_registry_name":"default","_cnpm_publish_time":1768925612498},"0.3.5":{"name":"beasties","version":"0.3.5","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^6.0.0","css-what":"^7.0.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.5.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.3.5","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-NaWu+f4YrJxEttJSm16AzMIFtVldCvaJ68b1L098KpqXmxt9xOLtKoLkKxb8ekhOrLqEJAbvT6n6SEvB/sac7A==","_resolved":"/private/var/folders/6z/46zhtr8n22zg8nh3bp7cq7c40000gn/T/334d2a540d378a4318ffac434d381b4d/beasties-0.3.5.tgz","_from":"file:beasties-0.3.5.tgz","_nodeVersion":"24.0.2","_npmVersion":"11.3.0","dist":{"shasum":"a52abea4ead105c1aded66b1a01a74e96585dc81","size":25539,"noattachment":false,"key":"/beasties/-/beasties-0.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.3.5.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev","actor":{"name":"danielroe","email":"daniel@roe.dev","type":"user"}},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.3.5_1751973949014_0.21699141199508132"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-08T11:25:49.195Z","publish_time":1751973949195,"_source_registry_name":"default","_cnpm_publish_time":1751973949195},"0.3.4":{"name":"beasties","version":"0.3.4","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.5.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.3.4","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-NmzN1zN1cvGccXFyZ73335+ASXwBlVWcUPssiUDIlFdfyatHPRRufjCd5w8oPaQPvVnf9ELklaCGb1gi9FBwIw==","_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/028898991118709812aeec7134499b82/beasties-0.3.4.tgz","_from":"file:beasties-0.3.4.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"a2268bd84ee9b51b0a89d208f768e93b7be5ee63","size":25316,"noattachment":false,"key":"/beasties/-/beasties-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.3.4.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.3.4_1747843124692_0.03984434391531355"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-21T15:58:44.863Z","publish_time":1747843124863,"_source_registry_name":"default","_cnpm_publish_time":1747843124863},"0.3.3":{"name":"beasties","version":"0.3.3","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.5.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.3.3","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-Mba3V4hTPrM7P2CSidueg71JZ0G+DyK7maBqp4/uax/PQznwdFti9cOW6Z3lTxBRH84kRICN0TyQ0MSSmufaAw==","_resolved":"/private/var/folders/6z/46zhtr8n22zg8nh3bp7cq7c40000gn/T/f7203f126cb17424a4324a425df03661/beasties-0.3.3.tgz","_from":"file:beasties-0.3.3.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"7ce042d03a257186fd251c6cb1e2a315b11284b7","size":25285,"noattachment":false,"key":"/beasties/-/beasties-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.3.3.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.3.3_1745233458575_0.7287454172022734"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-21T11:04:18.757Z","publish_time":1745233458757,"_source_registry_name":"default","_cnpm_publish_time":1745233458757},"0.3.2":{"name":"beasties","version":"0.3.2","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.5.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.3.2","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-p4AF8uYzm9Fwu8m/hSVTCPXrRBPmB34hQpHsec2KOaR9CZmgoU8IOv4Cvwq4hgz2p4hLMNbsdNl5XeA6XbAQwA==","_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/9743b2d0e5095ff4cfbc45385b712ef2/beasties-0.3.2.tgz","_from":"file:beasties-0.3.2.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"c0f7ed1362dff0ee8f9c448bcd1b1d6fe16cc609","size":25216,"noattachment":false,"key":"/beasties/-/beasties-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.3.2.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.3.2_1744049791801_0.561880381162817"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-07T18:16:32.020Z","publish_time":1744049792020,"_source_registry_name":"default","_cnpm_publish_time":1744049792020},"0.3.1":{"name":"beasties","version":"0.3.1","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.5.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.3.1","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-OOsYX+ry92cBMi1IMW9kljReuTvywsqDfbxGiRqHYotu6anq02tz3bSQ3UfxbLfRZqSNVy3ywpe8BMyIBvY9zg==","_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/1b72bc3455b2599b1b7fac604437eaf7/beasties-0.3.1.tgz","_from":"file:beasties-0.3.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"bcc8f7e1e32395eaaacd5c2b42114aff6dc221e0","size":25100,"noattachment":false,"key":"/beasties/-/beasties-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.3.1.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.3.1_1743983873071_0.04895137518917436"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-06T23:57:53.305Z","publish_time":1743983873305,"_source_registry_name":"default","_cnpm_publish_time":1743983873305},"0.3.0":{"name":"beasties","version":"0.3.0","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"3.5.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.3.0","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-hqBpZr/f8KhSv6Q6w1awSWVZgS1Ddij2+NVr41/SSBg+0lmFUfuT4ierIRKADv8Top8BUZUtpzND+iMSgMtJUA==","_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/415ee9bb72c0d6be695b02413c304c4e/beasties-0.3.0.tgz","_from":"file:beasties-0.3.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"fbb23a59f3cecaaaed4d654da5ae7ce507e3c88d","size":25136,"noattachment":false,"key":"/beasties/-/beasties-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.3.0.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beasties_0.3.0_1743981825720_0.4314120330152571"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-06T23:23:45.956Z","publish_time":1743981825956,"_source_registry_name":"default","_cnpm_publish_time":1743981825956},"0.2.0":{"name":"beasties","version":"0.2.0","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">=14.0.0"},"dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^9.1.0","picocolors":"^1.1.1","postcss":"^8.4.49","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"2.0.0"},"scripts":{"build":"unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","build:stub":"unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"_id":"beasties@0.2.0","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_integrity":"sha512-Ljqskqx/tbZagIglYoJIMzH5zgssyp+in9+9sAyh15N22AornBeIDnb8EZ6Rk+6ShfMxd92uO3gfpT0NtZbpow==","_resolved":"/private/var/folders/6z/46zhtr8n22zg8nh3bp7cq7c40000gn/T/2575c090ab6c105b97c2819c1104873f/beasties-0.2.0.tgz","_from":"file:beasties-0.2.0.tgz","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"bc418d3b797fbe40cd93923d31cc8d3597d19c94","size":24976,"noattachment":false,"key":"/beasties/-/beasties-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.2.0.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beasties_0.2.0_1733436296735_0.040252077917083406"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-05T22:04:57.021Z","publish_time":1733436297021,"_source_registry_name":"default","_cnpm_publish_time":1733436297021},"0.1.0":{"name":"beasties","version":"0.1.0","description":"Inline critical CSS and lazy-load the rest.","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"./dist/index.d.ts","dependencies":{"css-select":"^5.1.0","css-what":"^6.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^9.0.0","picocolors":"^1.1.1","postcss":"^8.4.47","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"@types/postcss-media-query-parser":"0.2.4","documentation":"14.0.3","unbuild":"2.0.0"},"scripts":{"build":"unbuild && cp src/index.d.ts dist/index.d.ts","build:stub":"unbuild --stub && cp src/index.d.ts dist/index.d.ts","docs":"documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha"},"bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_id":"beasties@0.1.0","_integrity":"sha512-+Ssscd2gVG24qRNC+E2g88D+xsQW4xwakWtKAiGEQ3Pw54/FGdyo9RrfxhGhEv6ilFVbB7r3Lgx+QnAxnSpECw==","_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/b96ca71d970d255ff2cdcb73b1a44b65/beasties-0.1.0.tgz","_from":"file:beasties-0.1.0.tgz","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"f8f8ba22ff79c86f4dcebe50527cefdf9f0d52c4","size":23984,"noattachment":false,"key":"/beasties/-/beasties-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.1.0.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beasties_0.1.0_1729955650224_0.9663130537547466"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-26T15:14:10.413Z","publish_time":1729955650413,"_source_registry_name":"default","_cnpm_publish_time":1729955650413},"0.0.26":{"name":"beasties","version":"0.0.26","description":"Inline critical CSS and lazy-load the rest.","main":"dist/beasties.js","module":"dist/beasties.mjs","source":"src/index.js","exports":{"import":"./dist/beasties.mjs","require":"./dist/beasties.js","default":"./dist/beasties.mjs"},"typings":"src/index.d.ts","license":"Apache-2.0","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"},{"name":"Janicklas Ralph","email":"janicklas@google.com"}],"keywords":["critical css","inline css","critical","beasties","webpack plugin","performance"],"repository":{"type":"git","url":"git+https://github.com/danielroe/beasties.git","directory":"packages/beasties"},"scripts":{"build":"microbundle --target node --no-sourcemap -f cjs,esm","docs":"documentation readme -q --no-markdown-toc -a public -s Usage --sort-order alpha src","prepare":"npm run -s build"},"dependencies":{"chalk":"^4.1.0","css-select":"^5.1.0","dom-serializer":"^2.0.0","domhandler":"^5.0.2","htmlparser2":"^8.0.2","postcss":"^8.4.23","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"documentation":"^13.0.2","microbundle":"^0.12.3"},"_id":"beasties@0.0.26","gitHead":"bd9ebe2a4dfd494a5ceb2569a5222917e54716a9","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"homepage":"https://github.com/danielroe/beasties#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"b21e8e33cac2989cc313f918cceb349df6cad170","size":44059,"noattachment":false,"key":"/beasties/-/beasties-0.0.26.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.0.26.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beasties_0.0.26_1729888786439_0.430477220367971"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-25T20:39:46.632Z","publish_time":1729888786632,"_source_registry_name":"default","_cnpm_publish_time":1729888786632},"0.0.0":{"name":"beasties","version":"0.0.0","author":{"name":"Daniel Roe","email":"daniel@roe.dev"},"_id":"beasties@0.0.0","gitHead":"1c6cbe18ba5e4016051153921f7c279ae6829d58","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"shasum":"7070b135f27329725d0ef675b3a08d213d40570f","size":216,"noattachment":false,"key":"/beasties/-/beasties-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/beasties/download/beasties-0.0.0.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@concision.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beasties_0.0.0_1729859060441_0.5483078520933289"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-25T12:24:20.641Z","publish_time":1729859060641,"_source_registry_name":"default","_cnpm_publish_time":1729859060641}},"readme":"<p align=\"center\">\n  <img src=\"https://i.imgur.com/J0jv1Sz.png\" width=\"240\" height=\"240\" alt=\"beasties\">\n  <h1 align=\"center\">Beasties</h1>\n</p>\n\n> Beasties is a plugin that inlines your app's [critical CSS] and lazy-loads the rest. It is a maintained fork of [GoogleChromeLabs/critters](https://github.com/GoogleChromeLabs/critters)\n\n## beasties [![npm](https://npmx.dev/api/registry/badge/version/beasties)](https://www.npmjs.org/package/beasties)\n\nIt's a little different from [other options](#similar-libraries), because it **doesn't use a headless browser** to render content. This tradeoff allows Beasties to be very **fast and lightweight**. It also means Beasties inlines all CSS rules used by your document, rather than only those needed for above-the-fold content. For alternatives, see [Similar Libraries](#similar-libraries).\n\nBeasties' design makes it a good fit when inlining critical CSS for prerendered/SSR'd Single Page Applications. It was developed to be an excellent compliment to [prerender-loader](https://github.com/GoogleChromeLabs/prerender-loader), combining to dramatically improve first paint time for most Single Page Applications.\n\n## Features\n\n- Fast - no browser, few dependencies\n- Integrates with Webpack [beasties-webpack-plugin]\n- Supports preloading and/or inlining critical fonts\n- Prunes unused CSS keyframes and media queries\n- Removes inlined CSS rules from lazy-loaded stylesheets\n\n## Installation\n\nFirst, install Beasties as a development dependency:\n\n```sh\nnpm i -D beasties\n```\n\nor\n\n```sh\nyarn add -D beasties\n```\n\n## Simple Example\n\n```js\nimport Beasties from 'beasties'\n\nconst beasties = new Beasties({\n  // optional configuration (see below)\n})\n\nconst html = `\n  <style>\n    .red { color: red }\n    .blue { color: blue }\n  </style>\n  <div class=\"blue\">I'm Blue</div>\n`\n\nconst inlined = await beasties.process(html)\n\nconsole.log(inlined)\n// \"<style>.blue{color:blue}</style><div class=\\\"blue\\\">I'm Blue</div>\"\n```\n\n## Usage with Vite\n\nBeasties can be used with Vite through [vite-plugin-beasties](https://www.npmjs.org/package/vite-plugin-beasties). [![npm](https://npmx.dev/api/registry/badge/version/vite-plugin-beasties)](https://www.npmjs.org/package/vite-plugin-beasties)\n\nJust add it to your Vite configuration:\n\n```js\n// vite.config.ts\nimport { defineConfig } from 'vite'\nimport { beasties } from 'vite-plugin-beasties'\n\nexport default defineConfig({\n  plugins: [\n    beasties({\n      // optional beasties configuration\n      options: {\n        preload: 'swap',\n      }\n    })\n  ]\n})\n```\n\nThe plugin will process the output for your `index.html` and inline critical CSS while lazy-loading the rest.\n\n## Usage with webpack\n\nBeasties is also available as a Webpack plugin called [beasties-webpack-plugin](https://www.npmjs.org/package/beasties-webpack-plugin). [![npm](https://npmx.dev/api/registry/badge/version/beasties-webpack-plugin)](https://www.npmjs.org/package/beasties-webpack-plugin)\n\nThe Webpack plugin supports the same configuration options as the main `beasties` package:\n\n```diff\n// webpack.config.js\n+const Beasties = require('beasties-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n+    new Beasties({\n+      // optional configuration\n+      preload: 'swap',\n+    })\n  ]\n}\n```\n\nThat's it! The resultant html will have its critical CSS inlined and the stylesheets lazy-loaded.\n\n## Usage\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Beasties\n\nAll optional. Pass them to `new Beasties({ ... })`.\n\n#### Parameters\n\n- `options`\n\n#### Properties\n\n- `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Base path location of the CSS files _(default: `''`)_\n- `publicPath` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Public path of the CSS resources. This prefix is removed from the href _(default: `''`)_\n- `external` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Inline styles from external stylesheets _(default: `true`)_\n- `remote` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Download and inline remote stylesheets (http://, https://, //) _(default: `false`)_\n- `inlineThreshold` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Inline external stylesheets smaller than a given size _(default: `0`)_\n- `minimumExternalSize` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** If the non-critical external stylesheet would be below this size, just inline it _(default: `0`)_\n- `pruneSource` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Remove inlined rules from the external stylesheet _(default: `false`)_\n- `mergeStylesheets` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Merged inlined stylesheets into a single `<style>` tag _(default: `true`)_\n- `additionalStylesheets` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** Glob for matching other stylesheets to be used while looking for critical CSS.\n- `reduceInlineStyles` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Option indicates if inline styles should be evaluated for critical CSS. By default inline style tags will be evaluated and rewritten to only contain critical CSS. Set it to `false` to skip processing inline styles. _(default: `true`)_\n- `allowRules` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [RegExp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)>** Always include rules matching these selectors or patterns in the critical CSS, regardless of whether they match elements in the document. _(default: `[]`)_\n- `preload` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Which [preload strategy](#preloadstrategy) to use\n- `noscriptFallback` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Add `<noscript>` fallback to JS-based strategies\n- `inlineFonts` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Inline critical font-face rules _(default: `false`)_\n- `preloadFonts` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Preloads critical fonts _(default: `true`)_\n- `fonts` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Shorthand for setting `inlineFonts` + `preloadFonts`\\* Values:\n  - `true` to inline critical font-face rules and preload the fonts\n  - `false` to don't inline any font-face rules and don't preload fonts\n- `keyframes` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Controls which keyframes rules are inlined.\\* Values:\n  - `\"critical\"`: _(default)_ inline keyframes rules used by the critical CSS\n  - `\"all\"` inline all keyframes rules\n  - `\"none\"` remove all keyframes rules\n- `compress` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Compress resulting critical CSS _(default: `true`)_\n- `safeParser` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Use PostCSS safe parser for fault-tolerant CSS parsing. Handles legacy code with syntax errors _(default: `true`)_\n- `logLevel` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Controls [log level](#loglevel) of the plugin _(default: `\"info\"`)_\n- `logger` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Provide a custom logger interface [logger](#logger)\n\n### Include/exclude rules\n\nWe can include or exclude rules to be part of critical CSS by adding comments in the CSS\n\nSingle line comments to include/exclude the next CSS rule\n\n```css\n/* beasties:exclude */\n.selector1 {\n  /* this rule will be excluded from critical CSS */\n}\n\n.selector2 {\n  /* this will be evaluated normally */\n}\n\n/* beasties:include */\n.selector3 {\n  /* this rule will be included in the critical CSS */\n}\n\n.selector4 {\n  /* this will be evaluated normally */\n}\n```\n\nIncluding/Excluding multiple rules by adding start and end markers\n\n```css\n/* beasties:exclude start */\n\n.selector1 {\n  /* this rule will be excluded from critical CSS */\n}\n\n.selector2 {\n  /* this rule will be excluded from critical CSS */\n}\n\n/* beasties:exclude end */\n```\n\n```css\n/* beasties:include start */\n\n.selector3 {\n  /* this rule will be included in the critical CSS */\n}\n\n.selector4 {\n  /* this rule will be included in the critical CSS */\n}\n\n/* beasties:include end */\n```\n\n### Programmatically including rules with allowRules\n\nIn addition to comment-based inclusion, you can use the `allowRules` option to programmatically include specific selectors or patterns in the critical CSS, regardless of whether they match elements in the document. This is useful for cases where you know certain styles should always be included.\n\n```js\nconst beasties = new Beasties({\n  // Always include these selectors in critical CSS\n  allowRules: [\n    // Exact selector match\n    '.always-include',\n    // Regular expression pattern\n    /^\\.modal-/\n  ]\n})\n```\n\nWith this configuration, any CSS rules with selectors that match `.always-include` exactly or start with `.modal-` will be included in the critical CSS, even if no matching elements exist in the document.\n\n### Beasties container\n\nBy default Beasties evaluates the CSS against the entire input HTML. Beasties evaluates the Critical CSS by reconstructing the entire DOM and evaluating the CSS selectors to find matching nodes. Usually this works well as Beasties is lightweight and fast.\n\nFor some cases, the input HTML can be very large or deeply nested which makes the reconstructed DOM much larger, which in turn can slow down the critical CSS generation. Beasties is not aware of viewport size and what specific nodes are above the fold since there is not a headless browser involved.\n\nTo overcome this issue Beasties makes use of **Beasties containers**.\n\nA Beasties container mimics the viewport and can be enabled by adding `data-beasties-container` into the top level container thats contains the HTML elements above the fold.\n\nYou can estimate the contents of your viewport roughly and add a <div `data-beasties-container` > around the contents.\n\n```html\n<html>\n  <body>\n    <div class=\"container\">\n      <div data-beasties-container>\n        /* HTML inside this container are used to evaluate critical CSS */\n      </div>\n      /* HTML is ignored when evaluating critical CSS */\n    </div>\n    <footer></footer>\n  </body>\n</html>\n```\n\n_Note: This is an easy way to improve the performance of Beasties_\n\n### Logger\n\nCustom logger interface:\n\nType: [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)\n\n#### Properties\n\n- `trace` **function ([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** Prints a trace message\n- `debug` **function ([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** Prints a debug message\n- `info` **function ([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** Prints an information message\n- `warn` **function ([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** Prints a warning message\n- `error` **function ([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** Prints an error message\n\n### LogLevel\n\nControls log level of the plugin. Specifies the level the logger should use. A logger will\nnot produce output for any log level beneath the specified level. Available levels and order\nare:\n\n- **\"info\"** _(default)_\n- **\"warn\"**\n- **\"error\"**\n- **\"trace\"**\n- **\"debug\"**\n- **\"silent\"**\n\nType: (`\"info\"` | `\"warn\"` | `\"error\"` | `\"trace\"` | `\"debug\"` | `\"silent\"`)\n\n### PreloadStrategy\n\nThe mechanism to use for lazy-loading stylesheets.\n\nNote: <kbd>JS</kbd> indicates a strategy requiring JavaScript (falls back to `<noscript>` unless disabled).\n\n- **default:** Move stylesheet links to the end of the document and insert preload meta tags in their place.\n- **\"body\":** Move all external stylesheet links to the end of the document.\n- **\"media\":** Load stylesheets asynchronously by adding `media=\"not x\"` and removing once loaded. <kbd>JS</kbd>\n- **\"swap\":** Convert stylesheet links to preloads that swap to `rel=\"stylesheet\"` once loaded ([details](https://www.filamentgroup.com/lab/load-css-simpler/#the-code)). <kbd>JS</kbd>\n- **\"swap-high\":** Use `<link rel=\"alternate stylesheet preload\">` and swap to `rel=\"stylesheet\"` once loaded ([details](http://filamentgroup.github.io/loadCSS/test/new-high.html)). <kbd>JS</kbd>\n- **\"swap-low\":** Use `<link rel=\"alternate stylesheet\">` (no `preload` in `rel` here!) and swap to `rel=\"stylesheet\"` once loaded ([details](http://filamentgroup.github.io/loadCSS/test/new-low.html)). It ensures lowest priority compared to `swap` and `swap-high`. <kbd>JS</kbd>\n- **\"js\":** Inject an asynchronous CSS loader similar to [LoadCSS](https://github.com/filamentgroup/loadCSS) and use it to load stylesheets. <kbd>JS</kbd>\n- **\"js-lazy\":** Like `\"js\"`, but the stylesheet is disabled until fully loaded.\n- **false:** Disables adding preload tags.\n\nType: (default | `\"body\"` | `\"media\"` | `\"swap\"` | `\"swap-high\"` | `\"swap-low\"` | `\"js\"` | `\"js-lazy\"`)\n\n## Similar Libraries\n\nThere are a number of other libraries that can inline Critical CSS, each with a slightly different approach. Here are a few great options:\n\n- [Critical](https://github.com/addyosmani/critical)\n- [Penthouse](https://github.com/pocketjoso/penthouse)\n- [webpack-critical](https://github.com/lukeed/webpack-critical)\n- [webpack-plugin-critical](https://github.com/nrwl/webpack-plugin-critical)\n- [html-critical-webpack-plugin](https://github.com/anthonygore/html-critical-webpack-plugin)\n- [react-snap](https://github.com/stereobooster/react-snap)\n\n## License\n\n[Apache 2.0](LICENSE)\n\nThis is not an official Google product.\n\n[beasties-webpack-plugin]: https://github.com/danielroe/beasties/tree/main/packages/beasties-webpack-plugin\n[critical css]: https://www.smashingmagazine.com/2015/08/understanding-critical-css/\n","_attachments":{},"homepage":"https://github.com/danielroe/beasties#readme","bugs":{"url":"https://github.com/danielroe/beasties/issues"},"license":"Apache-2.0"}