Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.03 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.03 KB

SVA Site Festival Map

Dependancies

# if need to pull the repo and install dependancies
npm install
{
  "scripts": {
    "dev": "vite dev --port 3103",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "@mapbox/mapbox-sdk": "^0.15.1",
    "mapbox-gl": "^2.14.1",
    "vite": "^4.3.8"
  }
}

The mapbox/mapbox-directions goes in the <head> to prevent dep conflict error.

Vite Config

Config for Vanilla JS Multi-page apps in Vite, where there are multiple HTML files in the root folder.

import { resolve } from 'path'
import { defineConfig } from 'vite'

export default defineConfig({
  build: {
    rollupOptions: {
      input: {
        main: resolve(__dirname, 'index.html'),
        next: resolve(__dirname, 'index2.html'),
      },
    },
  },
})

Static Assets

Vite Public Dir

Styles

Transfer Styles between accounts