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

To help you get started, we’ve selected a few postcss-discard-empty 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
/** color handling */
    colorNamesToHex(),
    rgbToHex({ rgbOnly: true, silent: true }),
    rgbaFallback(),
    formatHexColors(),

    /** email fixes */
    emailImportant(),
    shorthandExpand(), // so we can match for margin-top/margin-left etc.
    zeroOutMargin(),

    /** expanding to match heml elements */
    elementExpander({ elements, aliases }),
    mergeLonghand(),
    discardEmpty()
  ])
  .process(contents, { parser: safeParser })
}

postcss-discard-empty

Discard empty rules and values with PostCSS.

MIT
Latest version published 7 months ago

Package Health Score

95 / 100
Full package analysis

Popular postcss-discard-empty functions