C
C
citizen4042019-01-12 20:22:10
BEM
citizen404, 2019-01-12 20:22:10

How to build a multi-page BEM project with dependencies on Gulp4 and/or Webpack4?

Hello !
I have only recently begun to master the BEM methodology comprehensively (before that, I used only BEM naming). I really liked this concept and would like to fully implement it in my workflow.
However, since I don't have enough experience and I have a rather superficial knowledge of JavaScript, I don't have enough knowledge to file my "bike" for Gulp4 and / or Webpack4. And ready-made solutions from Yandex like bem-tools, enb and other specific solutions do not suit me because of their overload and, it seems to me, complexity.
Introductory:
1) html template engine: Pug;
2) css preprocessor: Sass;
3) Vanilla JS
I would like to be able to pull data into pug templates from a data.json file or similar data.js, as well as declaratively define the structure of BEM boxes, taking into account the appropriate dependencies.
In short, you need from this structure:
5c3a1ad546273619263966.png
get the following output:
5c3a1ac4177c9216201671.png
It doesn’t matter to me what to build on, be it Gulp, Webpack or their joint use, the main thing is to get the expected and predictable result.
What are your thoughts on this? :)
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
citizen404, 2019-02-27
@citizen404

This seems to be the best solution so far for my requirements:
Project home page link >>> https://nicothin.pro/page/my-start-kit
GitHub repository link >>> https://github .com/nicothin/NTH-start-project
As for me, the author has done a good and high-quality work and deserves the highest praise.
Perhaps this will be useful to someone too.

O
Oleg, 2019-01-12
@werty1001

What are your thoughts on this? :)

You need to learn JS and write an assembly for yourself or use already available solutions, there are no other options, you won’t be able to find an assembly for such requirements, there are no such trite ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question