CodeIgniter-Assets icon indicating copy to clipboard operation
CodeIgniter-Assets copied to clipboard

Minify doesn't work.

Open f15u opened this issue 12 years ago • 1 comments

First of all, thanks for the library.

I've got this config.php:

$config['script_dirs'] = array('assets/script/');

$config['style_dirs'] = array('assets/style/');

$config['cache_dir'] = 'assets/cache/';

$config['combine_css'] = TRUE;

$config['minify_css'] = TRUE;

$config['combine_js'] = TRUE;

$config['minify_js'] = TRUE;

$config['auto_update'] = FALSE;

$config['static_cache'] = TRUE;

controllers/home.php

class Home extends CI_Controller {

    public function index()
    {
        $this->load->library('assets');

        $this->load->helper('assets');

        $this->assets->add('common/app.css');
    }
}

Folder structure:

application/
assets/styles/cache/
assets/styles/common/app.css
system/
index.php

app.css:

@charset 'UTF-8';

* {
    outline: 0 !important;
}

html, body {
    width: 100%;
    height: 100%;
}

On cache folder, now I've got those files:

main.min.css
store.json

and the content of main.min.css, is the same of the original. Why? I don't understand this…

PS: sorry for my english.

f15u avatar Mar 06 '13 22:03 f15u

Trying to find some time to look into this...

jackboberg avatar Mar 14 '13 15:03 jackboberg