This is a minimal project for getting started with OpenLayers using Parcel bundler.
If you wonder what is Parcel, think of a powerful & simplified Webpack alternative. Their official motto is “Blazing fast, zero configuration web application bundler”
You must have Node installed
You may want to use Yarn instead of Npm to install Node packages but we choose to narrow choice to avoid confusion for beginners.
Clone this repository and cd into with:
git clone https://gist.github.com/ThomasG77/c21bb22c875b948b6466fe88b0429dbd.git demo-ol-parceljs
cd demo-ol-parceljsInstall deps with:
npm installThen do:
npm startOpen http://localhost:1234 to see the result
For production, you may want to run:
npm run buildand serve generated content using dist directory as root.