shish/microbundler

A minimal CSS / JS bundler

v1.0.1 2024-01-01 19:58 UTC

This package is auto-updated.

Last update: 2024-12-01 00:11:52 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