made-in-common

beasties

A library to inline your app's critical CSS and lazy-load the rest.

by made-in-common

TypeScript

TypeScript95.3%
CSS3.9%
HTML0.8%
JavaScript0.1%

Commit activity

Last 12 weeks · 68 commits

Full graph →

Community health

3 of 6 standards met

Community profile →
50
✓README✓License○Contributing✓Code of Conduct○Issue Template○PR Template
danielroe

I noticed that passing produced critical CSS with no rules at all, even though the face family was declared on . switching to inlined them. the shipped logic previously made enable preloading only: this PR turns into a proper shorthand for both: explicit and win over , so inlines. this is a behaviour change for anyone already passing : face rules are now inlined where they were only preloaded. keeps the old behaviour. it also lines up the README and types, which documented as defaulting to even though nothing is preloaded unless or is set. Summary by CodeRabbit New Features Setting now enables font inlining and preloading by default. Set either option to to disable that behavior; disables both. Font inlining and preloading remain disabled when no font options are set. Documentation Clarified the defaults and how the shorthand interacts with explicit inlining and preloading options.

danielroe · 11h ago
danielroe

with and in a project, importing and constructing fails to type-check: the reason is that both the and exports point at one , and with no TypeScript reads that file as CommonJS, so the default import resolves to the module namespace. this PR ships a next to the ESM build and a next to the CJS build, so each entry resolves to a declaration in the matching module format. Summary by CodeRabbit New Features Added TypeScript declarations for CommonJS consumers of Beasties, covering configuration options and customization methods. Improvements Clarified package entry points for ESM and CommonJS consumers. Strengthened package validation and compatibility checks for Beasties and its plugins. Builds now fail on warnings, helping surface potential issues earlier.

danielroe · 1d ago
Structured data for AI agents

Repository: made-in-common/beasties. Description: A library to inline your app's critical CSS and lazy-load the rest. Stars: 716, Forks: 31. Primary language: TypeScript. Languages: TypeScript (95.3%), CSS (3.9%), HTML (0.8%), JavaScript (0.1%). License: Apache-2.0. Homepage: https://npmx.dev/beasties Topics: critical-css, css, inlining-critical-fonts, vite, vite-plugin, webpack, webpack-plugin. Latest release: v0.5.5 (1mo ago). Open PRs: 6, open issues: 6. Last activity: 3h ago. Community health: 50%. Top contributors: renovate[bot], danielroe, developit, alan-agius4, janicklas-ralph, prateekbh, github-actions[bot], cliqer, imslepov, joshfester and others.