npm.io
0.2.0 • Published 7 years ago

postcss-util-class-placeholder

Licence
MIT
Version
0.2.0
Deps
1
Size
4 kB
Vulns
5
Weekly
0
Stars
2

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

Keywords