mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
fix url() imports
This commit is contained in:
@@ -1255,7 +1255,7 @@ if (less.mode === 'browser' || less.mode === 'rhino') {
|
||||
// Used by `@import` directives
|
||||
//
|
||||
less.Parser.importer = function (path, paths, callback, env) {
|
||||
if (path.charAt(0) !== '/' && paths.length > 0) {
|
||||
if (!/^([a-z]+:)?\//.test(path) && paths.length > 0) {
|
||||
path = paths[0] + path;
|
||||
}
|
||||
// We pass `true` as 3rd argument, to force the reload of the import.
|
||||
|
||||
Reference in New Issue
Block a user