JSPM

postcss-pseudoelements

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 175839
  • Score
    100M100P100Q174172F
  • License MIT

PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)

Package Exports

  • postcss-pseudoelements

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-pseudoelements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

postcss-pseudoelements

usage

var pe = require('postcss-pseudoelements');
var postcss = require('postcss');

var processor = postcss(pe({ selectors: ['before', 'after']}));

console.log(processor.process('a:before {}').css) // outputs: a:before {}
console.log(processor.process('a::before {}').css) // outputs: a:before {}

options

selectors: Array of pseudo-element selectors to rewrite with single and double colons. Note that these values will be used in a regexp without escaping. Defaults to ['before','after']