cuth / cuth/postcss-pxtorem

All files are excluded when exclude function contains ||

Open
#61 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

When exclude option is a function and it has operator ||, all files will be ignored.

For example, the following config will ignore all files:

```js
require('postcss-pxtorem')({
exclude: function exclude(file) {
return /node_modules/i.test(file) || false;
}
})
```

While the following code works properly:

```js
require('postcss-pxtorem')({
exclude: function exclude(file) {
return /node_modules/i.test(file);
}
})
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.