LaravelPackages.net
Acme Inc.
Toggle sidebar
krbv/minifyit

27
0
v0.1.5
About krbv/minifyit

krbv/minifyit is a Laravel package. It currently has 0 GitHub stars and 27 downloads on Packagist (latest version v0.1.5). Install it with composer require krbv/minifyit. Discover more Laravel packages by krbv or browse all Laravel packages to compare alternatives.

Last updated

Minifyit

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

Comments