Is there any option not to combine some of the css or js?
mohsincynexis opened this issue · comments
Mohsin Khan commented
Is there any options not to combine some of the css or js?
Michal Sniatala commented
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.
Mohsin Khan commented
Thanks a lot.
…________________________________
From: Michal Sniatala <notifications@github.com>
Sent: Monday, January 22, 2018 8:31:32 PM
To: slav123/CodeIgniter-minify
Cc: Mohsin Khan; Author
Subject: Re: [slav123/CodeIgniter-minify] Is there any option not to combine some of the css or js? (#44)
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#44 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALRJBU3p8sJz35VUZXZg5qyKWk9_u6ktks5tNKLMgaJpZM4RnaoI>.