gradio/website/homepage/postcss.config.js
2022-02-14 16:50:15 -05:00

22 lines
597 B
JavaScript

const purgecss = require('@fullhuman/postcss-purgecss')
const cssnano = require('cssnano')
const postcss_hash = require('postcss-hash')
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
cssnano({
preset: 'default'
}),
purgecss({
content: ['./src/**/*.html'],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
}),
postcss_hash({
algorithm: 'sha256',
trim: 20,
manifest: './generated/manifest.json'
}),
],
}