oliverdavies.uk/purgecss.config.js
2020-02-06 00:52:26 +00:00

10 lines
250 B
JavaScript

let glob = require('glob-all')
module.exports = {
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
paths: () => glob.sync([
'source/**/*.{md,twig}'
]),
whitelistPatterns: [/(code|kbd|pre|samp)/, /hljs/, /language/]
}