oliverdavies.uk/purgecss.config.js

10 lines
250 B
JavaScript
Raw Normal View History

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