This example demonstrates how the ol package can be used with webpack 2.
ol
Install the project dependencies.
npm install
Create a bundle for the browser.
npm run build
Open index.html to see the result.
index.html
open index.html