Categories

CSS compilation

Ammy Brown August 18, 2016
Rating: 5.0/5. From 3 votes.
You voted 5, 1 Stunde ago.
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.

Bookmarken den permalink.

Submit a ticket

Sollte Ihre Frage durch die Tutorials nicht ausreichend beantwortet worden sein, benutzen Sie bitte den folgenden Link, um sich an unser Beratungsteam (Support) zu wenden. Wir bieten Ihnen unsere Hilfe und Unterstutzung an. 24 Stunden am Tag, 7 Tage die Woche!
Ticket Einrichten

Kommentare sind geschlossen