B
B
Bogdan2018-08-15 23:29:49
css
Bogdan, 2018-08-15 23:29:49

How to prefix folder name selectors with gulp?

When building in gulp sass and html, it is necessary that a prefix (the name of the directory in which the file is located) -block - block.sass is added to
the class of both . Item color: red - block.html <\div> ----- ... css block-item{ color: red; } ... html <\div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-08-18
@modestguy

I do not know. of course... but maybe you are looking for css-modules... specifically this:
https://github.com/webpack-contrib/css-loader#loca...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question