This example demonstrates how the ol
package can be used with Vite.
To get started, run the following (requires Node 14+):
npx create-ol-app gaza --template vite
Then change into your new gaza
directory and start a development server (available at http://localhost:5173):
cd gaza
npm start
To generate a build ready for production:
npm run build
npm run serve
Then deploy the contents of the dist
directory to your server. You can also run npm run serve
to serve the results of the dist
directory for preview.