Add import inline option. Fixes #1209

This commit is contained in:
Luke Page
2013-03-19 15:20:46 +00:00
parent 08fca7a7cc
commit 6fc6dc2301
7 changed files with 41 additions and 32 deletions

View File

@@ -339,6 +339,8 @@ function loadFile(originalHref, currentFileInfo, callback, env) {
});
}
less.Parser.fileLoader = loadFile;
function extractId(href) {
return href.replace(/^[a-z-]+:\/+?[^\/]+/, '' ) // Remove protocol & domain
.replace(/^\//, '' ) // Remove root /