oliverdavies.uk/purgecss.config.js

10 lines
227 B
JavaScript

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