Comparing version 0.2.5 to 0.2.6
@@ -1,2 +0,2 @@ | ||
/* lessless version 0.2.5 copyright Dave Geddes (@geddesign) MIT license */ | ||
/* lessless version 0.2.6 copyright Dave Geddes (@geddesign) MIT license */ | ||
@@ -57,4 +57,5 @@ var less = require('less'), fs = require('fs'), diveSync = require("diveSync"); | ||
function optimizeProject(directory, styledirs) { | ||
function optimizeProject(directory, styledirs, stripExtensions) { | ||
directory = directory || process.cwd(); | ||
stripExtensions = stripExtensions || ['html']; | ||
console.log('optimizing LESS in: ', directory); | ||
@@ -72,4 +73,3 @@ diveSync(directory, | ||
} | ||
//todo make configurable | ||
else if (extension === 'html' || extension === 'jsp') { | ||
else if (stripExtensions.indexOf(extension) !== -1) { | ||
adjustLinks(file); | ||
@@ -76,0 +76,0 @@ } |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
52734