Skip to content

Minify doesn't work. #6

Description

@f15u

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions