Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// /** optimize css */
discardComments({ removeAll: false }),
minifyGradients(),
normalizeDisplayValues(),
normalizeTimingFunctions(),
convertValues({ length: false }),
reduceCalc(),
orderedValues(),
minifySelectors(),
minifyParams(),
discardOverridden(),
normalizeString(),
minifyFontValues({ removeQuotes: false }),
normalizeRepeatStyle(),
normalizePositions(),
discardEmpty(),
uniqueSelectors(),
declarationSorter(),
mergeAdjacentMedia(),
discardDuplicates(),
mergeRules(),
/** color handling */
colorNamesToHex(),
rgbToHex({ rgbOnly: true, silent: true }),
rgbaFallback(),
formatHexColors(),
/** email fixes */
emailImportant(),
shorthandExpand(), // so we can match for margin-top/margin-left etc.