Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 978 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 978 Bytes

Kiryi's MINIFYI

A simple CSS merger and minifier. The minifier is extremely basic without any huge logic.

Installation

git clone git@github.com:KiryiMONZTA/minifyi.git
cd minifyi
composer update

Usage

  • Create your configuration file.
  • Open a command line.
  • Navigate to {YOURMINIFYIINSTALLATION}/bin.
  • Execute:
php minify.php {CONFIGFILEPATH} {RESULTFILEPATH}

Parameters

CONFIGFILEPATH
Optional absolute filepath to your configuration file. Default is config.txt. Must end with .txt

RESULTFILEPATH
Optional absolute filepath to your resulting merged and minified CSS file. Must end with .css. Default is style.min.css.

Configuration File

Create a simple text file {NAME}.txt. Then add each of your CSS file's full filepaths to it - one per line. Each file must be plain CSS with file extension .css. The order of the files is the order the rules get applied.