I attached the file with the less extension and then (behind it) attached the file less.js ( https://raw.githubusercontent.com/cloudhead/less.js/master/dist/less-1.3.3.min.js). But for some reason I did not see the generated CSS styles. What am I doing wrong?
2 answers
And so you will not see the generated styles. There are two options:
- or you compile less on the client side (as you are trying to do now), and then follow all the recommendations: connect the styles with the attribute rel = "stylesheet / less", and, by the way, connect the fresher version: http://cdnjs.cloudflare.com/ ajax / libs / less.js / 1.7.0 / less.min.js;
- or compile when developing. lessc style.less> style.css. And to make it more convenient, you can configure any tracker. For myself, for example, I use grunt-contrib-watch.
|
A separate compiler for example http://koala-app.com/
it generates immediately, on the fly, after saving a less file, and in html already connect the generated css file
|