krbv/minifyit

There is no license information available for the latest version (v0.1.5) of this package.

v0.1.5 2017-01-28 04:48 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:29:30 UTC


README

Install

composer require krbv/minifyit

or

"require": {
    "krbv/minifyit": "0.1.*"
}

config/app.php

'providers' => [
    Krbv\Minifyit\MinifyitServiceProvider::class
];

Usage

        $this->minifyit = \App::make('minifyit');
                 
        $this->minifyit->setCSS( 

            ['/css/style.css','/css/form.css'], // will be merged in one new file.

            '/css/single.css'

         );

        $this->minifyit->setJS( \* the same *\ );

CSS is going to appear before "" JS before ""

For personal settings

php artisan vendor:publish

Config: /config/minifyit.php Views: /view/vendor/minifyit/css.html /view/vendor/minifyit/js.html