Permalink
Browse files

Merge pull request #5 from keshin/master

@import syntax can't been process while the resource is in the same path
  • Loading branch information...
2 parents 542dbfa + b8cef3f commit 93d540c3e1d63cf543994671296e173d79954c90 @creationix committed Dec 30, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Commands/Save to CSS.tmCommand
@@ -15,7 +15,9 @@ var css_file = less_file.replace(/\.less$/, ".css");
var input = fs.readFileSync(less_file, 'utf8');
try {
- less.render(input, {}, function (e, css) {
+ less.render(input, {
+ paths: [less_file.replace("/" + process.env.TM_FILENAME, "")]
+ }, function (e, css) {
if (e) { throw e; }
fs.writeFileSync(css_file, css);
});

0 comments on commit 93d540c

Please sign in to comment.