krbv / minifyit by Krbv

23
0
0
Package Data
Maintainer Username: Krbv
Maintainer Contact: iakorobov@gmail.com (Igor Korobov)
Package Create Date: 2016-12-21
Package Last Update: 2017-01-28
Language: PHP
License: Unknown
Last Refreshed: 2024-04-19 15:12:35
Package Statistics
Total Downloads: 23
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

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