21 lines
384 B
Markdown
21 lines
384 B
Markdown
# OpenLayers + Webpack
|
|
|
|
This example demonstrates how the `ol` package can be used with webpack 2.
|
|
|
|
Clone the project.
|
|
|
|
git clone git@gist.github.com:79025aef325cd2837364400a105405b8.git ol-webpack
|
|
|
|
Install the project dependencies.
|
|
|
|
cd ol-webpack
|
|
npm install
|
|
|
|
Create a bundle for the browser.
|
|
|
|
npm run build
|
|
|
|
Open `index.html` to see the result.
|
|
|
|
open index.html
|