# map-point **Repository Path**: yllon/map-point ## Basic Information - **Project Name**: map-point - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-24 - **Last Updated**: 2026-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # map-test ## Scripts - `npm run dev`: start the Vite dev server. - `npm run build`: create a double-click-friendly offline build in `dist/`. The generated `dist/index.html` and `dist/open-me.html` are offline entries, and `dist/index.web.html` is only a fallback redirect page if someone accidentally opens the wrong file locally. - `npm run build:file`: same as `npm run build`; kept as a compatibility alias. - `npm run build:web`: create the normal deploy/preview build in `dist-web/`. ## Notes About Opening The HTML Directly The project already uses a relative `base`, so static assets such as the local map tiles resolve from the current folder instead of the site root. For direct `file://` opening, use `npm run build` and then double-click `dist/open-me.html` or `dist/index.html`. The build step inlines the app JS and CSS into those files to avoid the browser CORS restriction on external module scripts loaded from `file://`. Keep the entire `dist/` folder together when you copy it to another machine. The HTML is self-contained, but the map tiles still live in `dist/layers/`. If you need to deploy through `http://` or `https://`, generate a fresh server-oriented build with `npm run build:web` and use `dist-web/index.html`.