Skip to content

Commit fb3613b

Browse files
committed
return empty array when no match
1 parent 3dc8bce commit fb3613b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purgecss/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const postcss = require('postcss');
22

33
let config = {
44
content: ['./public/**/*.html', './src/**/*.vue'],
5-
defaultExtractor: content => content.match(/[A-z0-9-_:/]+/g),
5+
defaultExtractor: content => content.match(/[A-z0-9-_:/]+/g) || [],
66
};
77

88
module.exports = postcss.plugin('tailwind-purgecss', function(opts) {

0 commit comments

Comments
 (0)