2017 © Pedro Peláez
 

library simple-minify

image

alanzhang/simple-minify

  • Tuesday, March 25, 2014
  • by alanzhang
  • Repository
  • 0 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

simple-minify

A simple server side minifier for CSS and Javascript, (*1)

To continue, please make sure you installed ygulify., (*2)

How to install

I recommend you to use standalone, system-wide installation via Composer, create a composer.json file with following content within an arbitary directory,then run compser install., (*3)

{
    "require": {
        "alanzhang/simple-minify": "dev-master"
    },
    "config": {
        "bin-dir": "/usr/local/bin/"
    }
}

How to use

After you installed simple-minify, you will get a global simple-minify command.Type following command by your cli, all your css and js files within public directory would get a compressed files named with origined-name.min.js or origined-name.min.css, (*4)

simple-minify /var/www/your-project/public
simple-minify /var/www/your-project/public/ 
simple-minify 
simple-minify .
simple-minify ./
simple-minify css
simple-minify css/

The regex may help if you want to make a project search/replace, (*5)

(?<!\.min\.)(?<=\.)css(?='|")

The Versions

25/03 2014

dev-master

9999999-dev

  Sources   Download

The Requires

  • php >=5.4

 

by Alan Zhang