An open API service indexing awesome lists of open source software.

https://github.com/dknight/minify

Minify JS and CSS for Frog CMS
https://github.com/dknight/minify

Last synced: 6 months ago
JSON representation

Minify JS and CSS for Frog CMS

Awesome Lists containing this project

README

          

h1. About

'Minify' is a plugin to minify JavaScript and/or CSS code and combine it
into one file on the fly. This will increase performance of website.

So you don't need to do dozens HTTP request for every JavaScript or CSS file. Minify plugin is more
useful and faster with Funky cache
plugin.

h1. Usage

Install the minify plugin to your Frog CMS plugins directory:



$cd /path/to/frog/plugins/
$git clone git://github.com/dknight/minify.git

h2. Activate minify plugin

!http://www.dmitri.me/misc/minify.png!

h2. Set the settings in the

So next step you need to create 'cache' directory in your document root and make it
writable. Due to security settings most webservers doesn't allow you to create
directories dynamically, so you need to create it manually. Create it in your DOCUMENT_ROOT/cache/
and set writtable permissions.



$mkdir /website/root/cache/
$chmod 0666 /website/root/cache/

h2. Usage in Frog CMS



HTML:



...

...

...

The 'minify' method can pass 3 parameters:

|_. name |_. description |_. type |_. default |
| files | File to be minified | array [required] | array() |
| output | Output to file or raw output into string | boolean [optinal] | false |
| fileName | Name of output file | string [optinal] | 'min.js' or 'min.css' |