mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 01:22:15 +03:00
20 lines
475 B
JavaScript
20 lines
475 B
JavaScript
const purgecss = require('@fullhuman/postcss-purgecss')({
|
|
content: [
|
|
'./js/**/*.js',
|
|
'../lib/plausible_web/templates/**/*.html.eex',
|
|
],
|
|
defaultExtractor: content => content.match(/[\w-/.:]+(?<!:)/g) || [],
|
|
whitelistPatterns: [/flatpickr\S+/],
|
|
whitelistPatternsChildren: [/flatpickr\S+/]
|
|
})
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
require('tailwindcss'),
|
|
require('autoprefixer'),
|
|
...process.env.NODE_ENV === 'production'
|
|
? [purgecss]
|
|
: []
|
|
]
|
|
}
|