I have problems with compile less on sublime text 2 with LESS-Build plugin, less normaly works but when i want build bootstrap from less sources sublime response me this error:
[Compile]
C:\test\assets\css\main.less -> C:\test\assets\css\main.css
Expected ')' but found ' ' on line 20 in file 'less/mixins/image.less':
[19]: // spelling of `min--moz-device-pixel-ratio` is intentional.
[20]: .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
--------------------^
[21]: background-image: url("@{file-1x}");
[Done - Failed]
[Finished in 0.3s]
How to repair this?
The LESS-build-sublime plugin seems to use the dotless LESS compiler. This .NET LESS compiler supports the language features up to version 1.3.0.
The source code of Bootstrap however uses a LESS compiler at version 2.1.0. Bootstrap depends on one of the language features that doesn't exist in version 1.3.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With