Answer the question
In order to leave comments, you need to log in
How to make an adaptive on PUG according to BEM when building on Webpack?
How to properly organize adaptive layout according to the BEM methodology? As I understand it, a separate desktop.blocks folder is created for desktop devices, and touch.blocks is created for tablets and phones, and when building via webpack, everything is configured so that if a person accesses the site via phone, styles for small screens will be loaded, BUT how to arrange it? For example: in the desktop.blocks folder there is a header folder with header.pug and header.scss files, and I copy the header folder with its attachments to the touch.blocks folder and add a hamburger (for example) in the header.pug file and change the styles in scss files to media queries? Or you can do without the desktop.blocks and touch.blocks folders altogether and simply create the blocks folder, which will also store the header folder with pug and scss files and create media there. scss and it is for the header to prescribe properties for the adaptive and connect it through webpack? But then how will webpack understand that it is on small screens that this media.scss needs to be included?
Answer the question
In order to leave comments, you need to log in
Or you can do without the desktop.blocks and touch.blocks folders altogether and just create the blocks folder
...and create media.scss there and set the properties for the adaptive for the header and connect it through webpack?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question