F
F
ForestEsprit2016-05-12 12:16:31
gulp.js
ForestEsprit, 2016-05-12 12:16:31

How to implement automatic prefix to classes?

Good afternoon everyone.
There is a need for all classes within the project to make a prefix like I type
.btn, going to .pre-btn. That is, I don’t want to write a prefix with my hands, it would be nice if gulp would collect it myself.
In the arsenal of sass + postcss.
What solutions exist?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2016-05-12
@ForestEsprit

postcss-class-prefix should be fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question