mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Add import inline option. Fixes #1209
This commit is contained in:
@@ -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 /
|
||||
|
||||
Reference in New Issue
Block a user