0.2.0 • Published 5 years ago

postcss-util-class-placeholder v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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')
    ]})
  ]
}