You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/assets/postcss.config.js

19 lines
390 B
JavaScript

const purgecss = require('@fullhuman/postcss-purgecss')({
content: [
'./js/**/*.js',
'../lib/plausible_web/templates/**/*.html.eex',
],
defaultExtractor: content => content.match(/[\w-/.:]+(?<!:)/g) || []
})
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss]
: []
]
}