Load files from their canonical URLs in compileStylesheet()

This commit is contained in:
Natalie Weizenbaum 2018-06-13 17:15:07 -07:00
parent f074152f61
commit a511716397

View File

@ -93,7 +93,7 @@ Future<Stylesheet> _parseStylesheet(
// else imports it.
if (source != null && options.indented == null) {
return importCache.importCanonical(new FilesystemImporter('.'),
p.toUri(p.absolute(source)), p.toUri(source));
p.toUri(p.canonicalize(source)), p.toUri(source));
}
var text = source == null ? await readStdin() : readFile(source);