From 503ac9b72cd565dd1b634bfe4860aba39178973f Mon Sep 17 00:00:00 2001 From: waxwing Date: Sat, 3 Nov 2012 10:03:00 +0000 Subject: [PATCH] Updated save command to work with lessc 1.3.0 --- Commands/Save to CSS.tmCommand | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Save to CSS.tmCommand b/Commands/Save to CSS.tmCommand index aea5128..3538881 100644 --- a/Commands/Save to CSS.tmCommand +++ b/Commands/Save to CSS.tmCommand @@ -6,8 +6,8 @@ saveActiveFile command #!/usr/bin/env ruby -file = STDIN.read[/lessc: ([^*]+\.less)/, 1] || ENV["TM_FILEPATH"] -system("lessc --verbose \"#{file}\"") +file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) +system("lessc -x \"#{file}.less\" > \"#{file}.css\"") input document keyEquivalent