Webpack Demo webpack is used to compile JavaScript modules. Once installed, you can interface with webpack either from its CLI or API.