Skip to content

Commit b08b814

Browse files
committed
update tailwind extractor matching
1 parent 0801740 commit b08b814

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

template/purgecss.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ const PurgecssWhitelister = require('purgecss-whitelister');
88
// https://github.com/FullHuman/purgecss#extractor
99
class TailwindExtractor {
1010
static extract(content) {
11-
const matches = content.match(/[A-z0-9-:/]+/g) || [];
12-
// remove back ticks
13-
// https://github.com/FullHuman/purgecss-webpack-plugin/issues/32
14-
return matches.map(s => s.replace('`', ''));
11+
return content.match(/[A-Za-z0-9-_:/]+/g) || [];
1512
}
1613
}
1714

0 commit comments

Comments
 (0)