F
F
Fedor2020-09-01 16:53:09
css
Fedor, 2020-09-01 16:53:09

How does less compile to css?

Good afternoon! I got a multi-page layout. I decided to try out the less preprocessor on it. I read the documentation. It seems to have figured out how to connect all the other less-files. (but it is not exactly). There was such a question. Here I have main.less, but it takes a long time to read and is generally not desirable. How to compile it to css? Do I need to create a separate clean main.css?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sashabeep, 2020-09-01
@sashabeep

it takes a long time to read and is generally not desirable

This is putting it mildly
https://mrmlnc.gitbooks.io/less-guidebook-for-begi...

D
Denis Ineshin, 2020-09-01
@IonDen

1. Take a normal and simple bundler for starters, for example Parcel: https://parceljs.org/less.html
2. The bundler will automatically convert less files into ready-made css and minify it.
3. You do not need to create any clean files beforehand, the bundler will do everything by itself.
Well, read the description, see the tutorials.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question