Webpack’s documentation is very good, but I wanted to document a very simple few steps to setting up Webpack, as a light introduction for those who want to see what it does before jumping in.

I prefer to use yarn over npm as I personally find it easier and more reliable. In most casts yarn & npm are interchangeable.


Create a new directory for your app and initialize it. Yarn will ask you some questions, which you can leave as the default by pressing `return` for each.

yarn init

Next, install webpack, plus webpack’s CLI. These are added with the --dev flag as they are only needed for development, they aren’t modules needed for your application once it is built. …


Dominic Robinson

Solution Architect based in Oslo https://www.linkedin.com/in/dominicrobinson

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store