Answer the question
In order to leave comments, you need to log in
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
it takes a long time to read and is generally not desirable
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 questionAsk a Question
731 491 924 answers to any question