2017 © Pedro Peláez
 

library cssminifier

Simple css minifier for Laravel

image

rafie/cssminifier

Simple css minifier for Laravel

  • Saturday, May 3, 2014
  • by Whyounes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Simple css minifier based on GarryJones css minifer., (*1)

Installation

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)

  • Add Rafie\Cssminifier\CssminifierServiceProvider to the providers array.
  • Add 'CssMin' => 'Rafie\Cssminifier\Facades\CssMin' to the aliases array. ( only if you want to use the static interface CssMin::minify(...) )

Usage

//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'
);

TODO

write tests, (*4)

The Versions

03/05 2014

dev-master

9999999-dev

Simple css minifier for Laravel

  Sources   Download

The Requires

 

03/05 2014

v1.0

1.0.0.0

Simple css minifier for Laravel

  Sources   Download

The Requires