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
- Host: GitHub
- URL: https://github.com/dknight/minify
- Owner: dknight
- Created: 2009-04-16T11:32:08.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2009-05-20T13:31:38.000Z (about 17 years ago)
- Last Synced: 2023-04-15T02:27:32.885Z (about 3 years ago)
- Language: PHP
- Homepage:
- Size: 89.8 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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' |