Skip to content

All files are excluded when exclude function contains || #61

@cxy930123

Description

@cxy930123

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

For example, the following config will ignore all files:

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

While the following code works properly:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions