sass-class-prefix
Parse sass file and add any prefix to scss(sass)'s class selector.
Install
Install with npm
npm install --save-dev sass-class-prefix
Usage
const prefixer = ;const target = ` .hello { .world { color: red; } }`;const parsed = prefixer;console;// =>// .prefix-hello {// .prefix-world {// color: red;// }// }
API
parse(scssText: string, prefix: string)
parseFile(filePath: string, prefix: string)
ToDo
- implements cli
- gulp integration
- webpack loader integration