mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
22 lines
597 B
JavaScript
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'
|
|
}),
|
|
],
|
|
} |