purgetss
Version:
A package that simplifies mobile app creation for Titanium developers.
47 lines (45 loc) • 1.85 kB
JavaScript
// ./purgetss/config.cjs
module.exports = {
purge: {
mode: 'all',
method: 'sync', // set how to execute auto-purging: sync or async
// These options are passed directly to PurgeTSS
options: {
missing: true, // Reports missing classes
widgets: false, // Purges widgets too
safelist: [], // Array of classes to keep
plugins: [] // Array of properties to ignore
}
},
brand: {
logos: {}, // empty = auto-discovers from purgetss/brand/
padding: {
ios: '4%', // iOS aesthetic. Range: 2% bold — 8% conservative. No launcher mask.
androidLegacy: '10%', // legacy ic_launcher.png padding
androidAdaptive: '19%' // adaptive foreground padding near the Android safe-zone
},
android: {
splash: false, // also generate splash_icon.png × 5
notification: false // also generate ic_stat_notify.png × 5
},
ios: {
dark: true, // generate iOS 18+ Dark appearance icon
tinted: true, // generate iOS 18+ Tinted appearance icon
darkBackground: null // null = transparent per Apple HIG
},
colors: {
background: '#FFFFFF' // Android adaptive bg + iOS/marketplace flatten
},
confirmOverwrites: true // prompt before overwriting files (set false to skip)
},
images: {
quality: 85, // JPEG/WebP/AVIF quality (0-100)
format: null, // null = keep original; 'webp' | 'jpeg' | 'png' to convert every image
autoSync: true, // false = SVG pipeline computes dims but doesn't write to images.files
confirmOverwrites: true, // prompt before overwriting files (set false to skip)
files: [] // per-file overrides: [{ filename: 'images/<sub>/<name>.<ext>', width, height? }]
},
theme: {
extend: {}
}
}