mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-02 09:37:49 +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,
|
color: request.alertColor,
|
||||||
logger: logger,
|
logger: logger,
|
||||||
importers: importers,
|
importers: importers,
|
||||||
importer: _decodeImporter(dispatcher, request, input.importer),
|
importer: _decodeImporter(dispatcher, request, input.importer) ??
|
||||||
|
(input.url.startsWith("file:") ? null : sass.Importer.noOp),
|
||||||
functions: globalFunctions,
|
functions: globalFunctions,
|
||||||
syntax: syntaxToSyntax(input.syntax),
|
syntax: syntaxToSyntax(input.syntax),
|
||||||
style: style,
|
style: style,
|
||||||
|
Loading…
Reference in New Issue
Block a user