webpack setup for javascript code example Example: webpack config example npm install --save-dev webpack-dev-server