Run webpack init in the project directory and choose the following options:
image
Remove stylesHandler from the webpack.config.js and add 'style-loader' instead
Run yarn add style-loader css-loader
HTML hot reload was not working for me (idk why) but it's not important for this project, normally you will never set it up manually and it's not worth wasting time on it
Create project structure in /src directory
Now you can run yarn serve and start working on the project
git init
npm install --global yarn
npm install -g webpack webpack-cli @webpack-cli/generators
webpack init
in the project directory and choose the following options: imagestylesHandler
from thewebpack.config.js
and add 'style-loader' insteadyarn add style-loader css-loader
yarn serve
and start working on the project