gradio/website/homepage/postcss.config.js

22 lines
597 B
JavaScript
Raw Normal View History

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({
2021-12-17 01:15:23 +08:00
content: ['./src/**/*.html'],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
}),
postcss_hash({
algorithm: 'sha256',
trim: 20,
manifest: './generated/manifest.json'
}),
],
}