The recent release of 4.7 of the ArcGIS API for JavaScript introduced a new @arcgis/webpack-plugin that lets you build your JSAPI apps with Webpack!
In this video, I'll walk you through a full project from scratch!
repo: https://github.com/odoe/jsapi-webpack
http://odoe.net
/ odoenetgeo
/ odoenet
/ odoenet
/ odoenet
Introducing ArcGIS API 4 for JavaScript - http://amzn.to/2ml8C5o