CodeIgniter Forums
CodeIgniter Minifier - Output Minification Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forum-7.html)
+--- Forum: Addins (https://forum.codeigniter.com/forum-13.html)
+--- Thread: CodeIgniter Minifier - Output Minification Library (/thread-65272.html)



CodeIgniter Minifier - Output Minification Library - allenlee - 05-23-2016

Just completed this library for my new website. I put it on Github, it may helps.

A HTML / CSS / Javascript Minification Library

[Image: L5Cps84.png]

https://github.com/terrylinooo/CodeIgniter-Minifier

Blush


RE: CodeIgniter Minifier - Output Minification Library - gregormck - 05-24-2016

Thanks for sharing. Will give it a go at some point.


RE: CodeIgniter Minifier - Output Minification Library - natanfelles - 05-29-2016

Hello!
Thanks for sharing. Good job, again.
Have you seen this post: https://github.com/bcit-ci/CodeIgniter/wiki/Compress-HTML-output ?
Maybe this can help in your project, or to implement anything.


RE: CodeIgniter Minifier - Output Minification Library - allenlee - 05-29-2016

Thank you~

Yes I have seen that post.

But it can not minify Javascript and inline CSS, so I make a new version for it.


RE: CodeIgniter Minifier - Output Minification Library - allenlee - 06-07-2016

Update to version 1.1 - Javascript obfuscator added.

[Image: PRGEKHj.png]

Javascript obfuscator is off by default, if you would like to use this feature, copy JSPacker.php to /application/third_party/ folder, then put $this->ci_minifier->enable_obfuscator(); in Controller.