How to use postcss-discard-overridden - 1 common examples

To help you get started, we’ve selected a few postcss-discard-overridden examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SparkPost / heml / packages / heml-styles / src / index.js View on Github external
} = options

  return postcss([
    ...plugins,

    // /** 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(),

postcss-discard-overridden

PostCSS plugin to discard overridden @keyframes or @counter-style.

MIT
Latest version published 7 months ago

Package Health Score

93 / 100
Full package analysis

Popular postcss-discard-overridden functions