Categories

CSS compilation

Ammy Brown August 18, 2016
Rating: 5.0/5. From 3 votes.
Please wait...

CSS compilation is a process of converting the LESS/SCSS code into CSS. You could already know that LESS/SCC is a dynamic CSS code, that allows to use different variables and functions. It has more options in comparison with CSS code.

Compiler program, written in JavaScript, takes LESS code and converts it into CSS. Here is an example of the LESS code:

CSS_Compilation_1

After the compilation code will look like:

CSS_Compilation_2

Our Cherry Framework themes have autocompiler included. You can see that in cherryframework/includes/less-compile.php file. Do not edit main-style.css file. That file is compiled from style.less file. You can add your code to the style.less file. Once the change is saved your main-style.css file will be removed and new one will be generated instead. That is reason why css changes done on the site are being reverted back.

Also there is a great variety of 3rd party tools that allow to compile your LESS files. You can easily find them online.

Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Comments are closed.