analytics/assets/postcss.config.js

19 lines
390 B
JavaScript
Raw Normal View History

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