Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-admin committed Dec 28, 2018
1 parent 62e2645 commit 1cdf569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webpack-plugin/lib/style-compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ module.exports = function (css, map) {
const matchExclude = exclude && normalizeCondition(exclude)

let useRpxPlugin = true
if (!matchInclude(this.resourcePath)) {
if (matchInclude && !matchInclude(this.resourcePath)) {
useRpxPlugin = false
}
if (matchExclude(this.resourcePath)) {
if (matchExclude && matchExclude(this.resourcePath)) {
useRpxPlugin = false
}

Expand Down

0 comments on commit 1cdf569

Please sign in to comment.