Sublime / LESS-Build error while compiling bootstrap

I have compilation problems less on sublime text 2 with the LESS-Build plugin, works less well, but when I want to build bootstrap from fewer sources, sublime answer 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 fix it?

+3


source to share


2 answers


The LESS-build-sublime plugin uses the dotless LESS compiler. This .NET LESS compiler supports language features up to version 1.3.0.



However, the Bootstrap source code uses the 2.1.0 LESS compiler. Bootstrap depends on one of the language features that are not available in version 1.3.0.

+2


source


The most practical solution for me is to build bootstrap with CMD or MSDOS windows in this case!

What I've done?

nodejs and then install this installation using the same nodejs. Less to compile this course ...

After that take the Less bootstrap folder, put it in a folder named Bootstrap/

, but the content of it all is that with a less developed bootstrap then in the project I think my theme folder and my files are there like Less bootstrap.less I think that my theme.less folder and modules as mixins or something like First all I do is concatenatebootstrap.min.css

in order not to use all the time the CMD needs to be compiled as fast press crt+B

is faster

to finish my project in "theme" I take out my wallet with my code "Less folder" and put it in the same folder where the boot tray contains "Less" in turn puts the folder "theme" which has less and in file which I call arparte style.less or the name you want me to place

@import "bootstrap / bootstrap.less";
@import "theme / efix.less";

      



After that if I go there and compiled to CMD with the command

lessc xxx.less xxx.css

      

Significantly hubicacion should be in one file

i.e

xampp/htdocs/projects/test/

      

I hope this can help because many are trying to compile the bootloader with my own code. Less "Use Less-build" or dotless Sublime Text and can't be

Sorry my bad English, use google translation as my first language is Spanish

0


source







All Articles