gabrieljmj / junty-minify
Junty plugin for CSS and JS minification.
v0.1.1
2016-03-19 22:26 UTC
Requires
- php: >=7.0
- junty/junty-plugin: ^0.1
- matthiasmullie/minify: ^1.3
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is auto-updated.
Last update: 2025-01-16 03:50:40 UTC
README
Junty plugin for CSS and JS minification.
Installation
$ composer require --dev gabrieljmj/junty-minify
Usage
It is simple to use:
use Gabrieljmj\JuntyMinify\{Css as CssMinifier, Js as JsMinifier}; // CSS $junty->task('css_minify', function () { $this->src('./public/css/*.css') ->forStreams(new CssMinifier()) ->forStreams($this->toDir('public/dist/css')); }); // JS $junty->task('js_minify', function () { $this->src('./public/js/*.js') ->forStreams(new JsMinifier()) ->forStreams($this->toDir('public/dist/js')); });