dev-master
9999999-devSimple css minifier for Laravel
The Requires
- php >=5.4.0
- illuminate/support 4.1.*
by RAFIE Younes
v1.0
1.0.0.0Simple css minifier for Laravel
The Requires
- php >=5.4.0
- illuminate/support 4.1.*
by RAFIE Younes
Wallogit.com
2017 © Pedro Peláez
Simple css minifier for Laravel
Simple css minifier based on GarryJones css minifer., (*1)
In your composer.json file, require rafie/Cssminifier and run composer dumpautoload., (*2)
After the download has finished, in your app/config/app.php you need to:, (*3)
Rafie\Cssminifier\CssminifierServiceProvider to the providers array.'CssMin' => 'Rafie\Cssminifier\Facades\CssMin' to the aliases array. ( only if you want to use the static interface CssMin::minify(...) )//through the Ioc
$cssmin = App::make("cssmin");
$cssmin->minify(
[
'path/to/file1.css',
'path/to/file2.css'
],
'output/path',
true,// (optional) remove comments or no
false // (optional) concat the resulted files into one file 'all.min.css'
);
//Through the Facade
CssMin::minify(
[
'path/to/file1.css',
'path/to/file2.css'
],
'output/path',
true,// (optional) remove comments or no
false // (optional) concat the resulted files into one file 'all.min.css'
);
write tests, (*4)
Simple css minifier for Laravel
Simple css minifier for Laravel