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

Commit

Permalink
fix(plugins): add additional check for node.text in StyleUrlResolvePl…
Browse files Browse the repository at this point in the history
…ugin (#95)

closes #92
  • Loading branch information
sis0k0 authored Mar 6, 2017
1 parent 11fccf8 commit 4a1b625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resource-resolver-plugins/StyleUrlResolvePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const StyleUrlResolvePlugin = (function() {

StyleUrlResolvePlugin.prototype.traversePropertyElements = function(property) {
property.initializer.elements
.filter(el => !!el.text)
.filter(el => this.notPlatformUrl(el.text))
.filter(el => this.noMultiplatformFile(el.text))
.forEach(el => this.replaceStyleUrlsValue(el));
Expand Down

0 comments on commit 4a1b625

Please sign in to comment.