Calendar/purgecss.config.js

52 lines
1.1 KiB
JavaScript
Raw Normal View History

2025-11-03 14:54:57 +01:00
export default {
content: [
'./src/**/*.ts',
'./wwwroot/**/*.html'
],
css: [
'./wwwroot/css/*.css'
],
// Don't actually remove anything, just analyze
rejected: true,
rejectedCss: true,
// Safelist patterns that are dynamically added via JavaScript
safelist: {
standard: [
// Custom elements
/^swp-/,
// Dynamic grid columns
/^cols-[1-4]$/,
// Stack levels
/^stack-level-[0-4]$/,
// Event states
'dragging',
'hover',
'highlight',
'transitioning',
'filter-active',
'swp--resizing',
// All-day event classes
'max-event-indicator',
'max-event-overflow-hide',
'max-event-overflow-show',
// Chevron states
'allday-chevron',
'collapsed',
'expanded',
// Month view classes
/^month-/,
/^week-/,
'today',
'weekend',
'other-month',
// Utility classes
'hidden',
'invisible',
'transparent',
'calendar-wrapper'
],
deep: [],
greedy: []
}
};