Once dependencies are installed, you can have dev-mode running in your browser in seconds. Vite’s dev server provides instant startup, hot module replacement, and fast rebuilds — so every change you make to a component or stylesheet is reflected immediately without a full page reload.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dev-mode/llms.txt
Use this file to discover all available pages before exploring further.
Starting the Dev Server
Start the Vite dev server
From the project root, run:Vite will print output similar to the following:Open http://localhost:5173/ in your browser. The Home page loads immediately.
Explore the seven pages
dev-mode uses React Router’s
Because routing is hash-based, the server never needs to handle different paths — the
HashRouter, so all navigation happens via hash-based URLs. Every route is accessible directly in the address bar:| Page | Hash URL |
|---|---|
| Home | http://localhost:5173/#/ |
| About | http://localhost:5173/#/about |
| Projects | http://localhost:5173/#/projects |
| Skills | http://localhost:5173/#/skills |
| Writing | http://localhost:5173/#/writing |
| Case Studies | http://localhost:5173/#/cases |
| Contact | http://localhost:5173/#/contact |
# fragment is processed entirely by the React Router client. You can bookmark any of these URLs and they will work on both the dev server and the static pages/ build.How Hash Routing and Static Pages Work Together
Each file in thepages/ directory (for example pages/About.html) contains a small inline <script> block that runs before React mounts:
- Sets
window.__STATIC_PAGE_ROUTE__— the React app reads this value at startup so it knows which route to render without waiting for the hash to be parsed. - Redirects bare requests — if a visitor lands on
pages/About.htmlwithout a hash fragment, the script rewrites the URL topages/About.html#/aboutbefore React initialises. This ensures theHashRouterroutes to the correct view even when the page is opened directly from the filesystem or a static host.
index.html entry point does the same for the root route (window.__STATIC_PAGE_ROUTE__ = "/"), ensuring the Home page loads correctly in all environments.
Building for Production
To generate the optimised static output:pages/ directory alongside the compiled assets/main.js and assets/main.css. The result is a fully self-contained static site that can be deployed to any CDN or static host with no server-side runtime required.