Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-content-entity

komarnitskyi53MIT0.2.0

PostCSS plugin that allows to use html entities inside css content property

postcss, css, postcss-plugin, content, html entity

readme

PostCSS Content Entity Build Status

PostCSS plugin that allows to use html entities inside css content property.

.foo:after {
    /* Input example */
    content: '×'
}
.foo:after {
    /* Output example */
    content: '\d7;'
}

Install

NPM:

   npm i postcss-content-entity

Yarn:

   yarn add postcss-content-entity

Usage

and use it with post css

postcss([ require('postcss-content-entity') ])

See PostCSS docs for examples for your environment.

changelog

0.1

  • Initial release