Code examples from Patrick Hund's talk and blog article about webpack.
You can find the source code on GitHub.