A
A
Artyom2020-02-18 20:25:39
BEM
Artyom, 2020-02-18 20:25:39

Do I need to create a folder/file for each BEM block/element/modifier in each project?

Does the BEM methodology always create a file structure similar to the BEM tree, where each block/element has its own folder and file with code

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anita Kovaleva, 2020-02-18
@danyvasnafig

If your project is a landing page, then it is not necessary.
If you are making a front-end project with logic ([albeit minimal), create your own css file for each module (bem block).
If you are creating a regular corporate site and will not maintain it in the future - you can just follow the BEM naming, the file structure will be a waste of time for you. Keep in mind that how many people - so many ways to structure projects (most often, no one cares how you do it, use DRY principles)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question