Answer the question
In order to leave comments, you need to log in
How to build a frontend with webpack and BEM?
Task:
CSS : compile .scss, add prefixes, minify and merge into one file main.css
JS : minify and merge into one file main.js
The project structure is as follows:
static/
├── build
│ ├── main.css
│ └── main.js
└── src
└── blocks
├── a
│ ├── a.js
│ └── a.scss
├── b
│ └── b.scss
├── c
│ └── b.scss
└── d
├── d.js
└── d.scss
Answer the question
In order to leave comments, you need to log in
In webpack, you simply specify the file extension in the config and the loader that should process this file type.
https://github.com/WapGeaR/react-redux-boilerplate... here is an example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question