Get support for ericlbarnes/ci-minify

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

ericlbarnes/ci-minify

CodeIgniter Minify

Please note this project is no longer maintained.

The goal of this project is to provide a simple way to minify and combine js and css files inside a CodeIgniter application. Currently other systems exists but I wanted the compression to be part of my build process. So on deployments I compress and minify all the js and css. Then push off to s3 but this could also be useful to write them to a single file.

Installation

Upload the Minify folder to your libraries folder. This is built using CI2 packages and you must be using CI2.

Usage

Below is an overview of different usages:

Minify JS file

Minify CSS file

Minify String

Minify and combine an array of files. Useful if you need files to be in a certain order.

Minify and save a physical file

Minify an entire directory. The second param is an array of ignored files.

Optional Params

Common:

Combine dir:

Credits

fsencinas - (https://github.com/fsencinas) JS-Min - (https://github.com/rgrove/jsmin-php)

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2