PHP code example of shish / microbundler

1. Go to this page and download the library: Download shish/microbundler library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

shish / microbundler example snippets


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