Describe the bug
whitelistPatterns/whitelistPatternsChildren defined inside of package.json files don't work, probably because they are strings, not of regexes. The following error is thrown while building:
TypeError: v.test is not a function
To Reproduce
whitelistPatternsChildren option in package.json via postcss-load-config.Expected behavior
Strings found inside whitelistPatterns/whitelistPatternsChildren should be converted into regexes.
Screenshots
package.json
"postcss": {
"plugins": {
"tailwindcss": "./tailwind.config.js",
"vue-cli-plugin-tailwind/purgecss": {
"whitelistPatternsChildren": ["/^el-/"],
},
"autoprefixer": {}
}
},
Desktop (please complete the following information):
"@fullhuman/postcss-purgecss": "^1.1.0"Having the same problem, but using webpack plugin.
@PrimarchAlpharius Don't place your regex in quotes
Most helpful comment
@PrimarchAlpharius Don't place your regex in quotes