This example demonstrates how the ol package can be used with webpack and the Closure Compiler.
Clone the project.
git clone git@gist.github.com:8ceafc6293455ba491dd9be12c15761f.git ol-webpack-closure
Install the project dependencies.
cd ol-webpack-closure
npm install
Create a bundle for the browser.
npm run build
Open index.html
to see the result.
open index.html