Webpack 5 has been out for several weeks now and has several new features and changes that I very much wanted to work with and make use of in a Craft CMS 3 project I maintain.
However, when an update with breaking changes comes out, it can be an absolute bear getting all of your dependencies to play together nicely.
(Sometimes it can even be impossible until other dependency package maintainers can get to updating their own code.)
Generally, I like to use boilerplates to kickstart my projects, but some of these updates are so new that I wasn't able to find one that both worked correctly and suited my needs.
Since I couldn't find one, I created a new boilerplate with Webpack 5, PostCSS 8, Tailwind 2, and HMR for your development environment. (It also contains goodies like Sass and Babel, of course.)
It tries to make little-to-no assumptions about your project; only what it needs to in order to function.
PRs and constructive feedback are always welcome!