mrclay / minify

Combines. minifies, and serves CSS or Javascript files
BSD 3-Clause "New" or "Revised" License
3.01k stars 472 forks source link

Poor doc for static version #675

Open digiwirtual opened 4 years ago

digiwirtual commented 4 years ago

After following install instruction I decided to try static version, but immediately i got an error missing bootstrap.php so I created a file in a static dir.

<?php
use Minify\App;

require __DIR__ . '/../../vendor/autoload.php';

return new App(__DIR__);

Then I got a problem with mod_rewrite, after I checked all docs I found tiny note in .htaccess # You may need RewriteBase on some servers - it should be in the troubleshooting part.

Finally I fixed index.php in /min/ directory which I use for testing purpose.

<?php
use Minify\App;

require __DIR__ . '/../vendor/autoload.php';

$app = new App(__DIR__);
$app->runServer();