slav123 / CodeIgniter-minify

CodeIgniter minify library CSS and JavaScript compression on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any option not to combine some of the css or js?

mohsincynexis opened this issue · comments

Is there any options not to combine some of the css or js?

Use the grouping option. Then simply add one file per group when you don't want to combine files, eg:

$this->minify
    ->js(['html5.js', 'doodle.js'])
    ->js(['file1.js'] 'one_file_in_group_1')
    ->js(['file2.js'] 'one_file_in_group_2')
    ->css(['styles.css', 'header.css'])
    ->css(['file1.css'], 'one_file_in_group_1')
    ->css(['file2.css'], 'one_file_in_group_2');

When you deploy, each group is processed separately.