Fixing url slash problem that caused failures.

This commit is contained in:
meri
2013-12-18 16:17:00 +01:00
parent eff959f38f
commit cba972d0db
4 changed files with 47 additions and 15 deletions

View File

@@ -29,7 +29,7 @@
var importVisitor = this,
evaldImportNode,
inlineCSS = importNode.options.inline;
if (!importNode.css || inlineCSS) {
try {

View File

@@ -79,7 +79,7 @@ tree.Import.prototype = {
var pathValue = path.value;
// Add the base path if the import is relative
if (pathValue && env.isPathRelative(pathValue)) {
path.value = rootpath + pathValue;
path.value = rootpath +pathValue;
}
}
path.value = env.normalizePath(path.value);
@@ -91,7 +91,7 @@ tree.Import.prototype = {
var ruleset, features = this.features && this.features.eval(env);
if (this.skip) { return []; }
if (this.options.inline) {
//todo needs to reference css file not import
var contents = new(tree.Anonymous)(this.root, 0, {filename: this.importedFilename}, true);