Jump to content
thirty bees forum

CSS/JS minification in 1.5.0 / bleeding edge


Recommended Posts

Posted

Hi everyone,

I just wanted to let you all know that javascript/CSS minification functionality was removed from core. It was replaced with new module tbminifier - this module contains almost identical implementation of original code form core. 

If you update to bleeding edge, and if you are using CCC functionality, please install this module as well. Otherwise, combined css/js assets would not be minified (but they would still be combined into one big bundle)

The reason behind this change is to reduce dependency of core code on third party composer libraries. These dependencies causes a lot of troubles recently. If you install some module that depends the same library (but different version), core version of library will be used because it was loaded first. We know about at least one problematic module -- mollie -- but there will be others as well. 

Another reasons for this change is to have more flexibility -- you can implement different minification algorithms using different libraries. Who knows, maybe somebody will come up with something new and better.

  • Like 5
  • 1 year later...
Posted

I don't see any differences on the code with the module tbminifier active or disactive. There is something else to be done to minify the html code?

Posted

Same here.

In theory nothing more should be done, but yes, my source is also not minified and it looks 'human-readable'. But I'm pretty sure this was the case before the extraction.

EDIT: You have to have your module active and then in Performance have those settings as follows:
image.png.075b90014399c7ca7e648efcaa42c5da.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...