Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 4a1b625

Browse files
authored
fix(plugins): add additional check for node.text in StyleUrlResolvePlugin (#95)
closes #92
1 parent 11fccf8 commit 4a1b625

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: resource-resolver-plugins/StyleUrlResolvePlugin.js

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const StyleUrlResolvePlugin = (function() {
6464

6565
StyleUrlResolvePlugin.prototype.traversePropertyElements = function(property) {
6666
property.initializer.elements
67+
.filter(el => !!el.text)
6768
.filter(el => this.notPlatformUrl(el.text))
6869
.filter(el => this.noMultiplatformFile(el.text))
6970
.forEach(el => this.replaceStyleUrlsValue(el));

0 commit comments

Comments
 (0)