postcss-util-class-placeholder

0.2.0 • Public • Published

PostCSS Util Class Placeholder Build Status

A simple PostCSS plugin that change utility class selector to Placeholder syntax (SASS-like).

.hover\:text-light-grey:hover {
  color: #666;
}
%hover\:text-light-grey:hover {
  color: #666;
}

Usage

const path = require('path')
module.exports = {
  plugins: [
    //specify the files which you want to process only
    require('postcss-util-class-placeholder')({files: [
      path.resolve(__dirname, './src/your-util.css')
    ]})
  ]
}

Package Sidebar

Install

npm i postcss-util-class-placeholder

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • shentengtu