Hello world
This commit is contained in:
18
readme.md
Normal file
18
readme.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# OpenLayers + Vite
|
||||
|
||||
This example demonstrates how the `ol` package can be used with [Vite](https://vitejs.dev/).
|
||||
|
||||
To get started, run the following (requires Node 14+):
|
||||
|
||||
npx create-ol-app my-app --template vite
|
||||
|
||||
Then change into your new `my-app` directory and start a development server (available at http://localhost:5173):
|
||||
|
||||
cd my-app
|
||||
npm start
|
||||
|
||||
To generate a build ready for production:
|
||||
|
||||
npm run build
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user