Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime / LESS-Build error when compile bootstrap

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?

like image 375
user3501587 Avatar asked Apr 26 '26 17:04

user3501587


1 Answers

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.

like image 63
ckuijjer Avatar answered Apr 28 '26 21:04

ckuijjer