gradio/website/homepage/postcss.config.js
2021-12-16 17:15:23 +00: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'
}),
],
}