shish / microbundler
A minimal CSS / JS bundler
Installs: 9 482
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- shish/ffsphp: ^1.3
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.41.1
- phpstan/phpstan: 1.10.50
- phpunit/phpunit: 10.5.3
This package is auto-updated.
Last update: 2025-03-01 00:44:27 UTC
README
A tiny library to turn a bunch of CSS/JS files into single CSS/JS bundles, with source maps.
use \MicroBundler\MicroBundler;
$mb = new MicroBundler();
$mb->addSource("input1.css");
$mb->addSource("input2.css");
$mb->addSource("dynamic.css", ".my_class { color: red; }");
$mb->save("output.css"); // writes output.css + output.css.map