Skip to content

Commit 6179583

Browse files
committed
Let pipe lessc output to outfile rather than providing outfile arg due to lessc bug
Makes it work with bootstrap 3. See http://stackoverflow.com/questions/28475730/compiling-bootstrap-less-shows-errors-warnings
1 parent 715e8ca commit 6179583

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pipeline/compilers/less.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def match_file(self, filename):
1313
return filename.endswith('.less')
1414

1515
def compile_file(self, infile, outfile, outdated=False, force=False):
16-
command = "%s %s %s %s" % (
16+
# Pipe to file rather than provide outfile arg due to a bug in lessc
17+
command = "%s %s %s > %s" % (
1718
settings.PIPELINE_LESS_BINARY,
1819
settings.PIPELINE_LESS_ARGUMENTS,
1920
infile,

0 commit comments

Comments
 (0)