mirror of
https://github.com/less/less.js.git
synced 2026-02-09 06:25:24 -05:00
Fallback url() value for data-uri function should be quoted.
This commit is contained in:
committed by
Luke Page
parent
51387047da
commit
feed74f3bd
@@ -429,7 +429,7 @@ tree.functions = {
|
||||
console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!", filePath, fileSizeInKB, DATA_URI_MAX_KB);
|
||||
}
|
||||
|
||||
return new(tree.URL)(new(tree.Anonymous)(filePath));
|
||||
return new(tree.URL)(new(tree.Quoted)("'" + filePath + "'", filePath));
|
||||
} else if (!this.env.silent) {
|
||||
// if explicitly disabled (via --no-ie-compat on CLI, or env.ieCompat === false), merely warn
|
||||
console.warn("WARNING: Embedding %s (%dKB) exceeds IE8's data-uri size limit of %dKB!", filePath, fileSizeInKB, DATA_URI_MAX_KB);
|
||||
|
||||
Reference in New Issue
Block a user