mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
Treat null importer as noOp if url is not a file: url (#83)
This commit is contained in:
parent
f2053d7018
commit
615f6ed70a
@ -71,7 +71,8 @@ void main(List<String> args) {
|
||||
color: request.alertColor,
|
||||
logger: logger,
|
||||
importers: importers,
|
||||
importer: _decodeImporter(dispatcher, request, input.importer),
|
||||
importer: _decodeImporter(dispatcher, request, input.importer) ??
|
||||
(input.url.startsWith("file:") ? null : sass.Importer.noOp),
|
||||
functions: globalFunctions,
|
||||
syntax: syntaxToSyntax(input.syntax),
|
||||
style: style,
|
||||
|
Loading…
Reference in New Issue
Block a user