M
M
mihaevs2014-10-16 08:36:51
Less
mihaevs, 2014-10-16 08:36:51

How to connect less?

what kind of problems, I connect Less, in firefoxe everything is normal, but in others there are a lot of errors
04c1d4966ba3410fa5b090887d7b99f8.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Julia YuKi, 2014-10-17
@mihaevs

As already mentioned above, connecting less directly to a live site is not good for various objective reasons - starting with the fact that it usually slows down rendering, if you force compilation to work in this way on the client, therefore, as you have been unsubscribed above, preprocessing is usually used only on developer, but not in a live environment. That is, you write a less file, take a compiler that will turn it into regular css on your machine, that is, it will compile (look at SimpLess: wearekiss.com/simpless,for example, if you don’t want or don’t know how to use Gulp / Grunt) and you upload this compiled css to the server and connect it to the site. The technology of work is this - you do everything in less files, after editing, always compile to css in one way or another and upload it.
I don’t know how to explain it more clearly, because everything has already been written above. :)

E
Evgeny Komarov, 2014-10-16
@maNULL

Don't do this.... Include CSS. Write *.less files and compile them into ready-made css, which will go under and go on the page. For automatic compilation, use gulp / grunt, because poking into the console gets boring very quickly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question