slav123 / CodeIgniter-minify

CodeIgniter minify library CSS and JavaScript compression on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$config['js_file'] not working properly

manukieli opened this issue · comments

I'm using this code
$this->load->library('minify'); $minify_config['js_file'] = 'newtable.js'; $minify = new Minify($minify_config); $minify->js(array('tables.js'));

I want my own name of js_file, but they return me alway the same js name file: script.min.js
I'm using PHP7.2

Yep... nice catch - thanks :)

One thing - you can simplify your code by doing this:

$minify_config['js_file'] = 'newtable.js';
$this->load->library('minify', $minify_config);
$this->minify->js(array('tables.js'));