Local Development
Exported Lediv projects are standard Vite projects. They can be run locally, edited with external tools, and integrated into custom CI/CD workflows.
This path is useful when local debugging, custom build scripts, or team workflows require direct project control.
Run locally
After downloading and unzipping the export, install dependencies and start the dev server.
npm install npm run dev Use the local server during implementation, QA, and quick iterations before publishing.
Build output
Create a production build when the project is ready to deploy.
npm run build Optional local check of production output:
npm run preview
The build output is generated in dist/. This folder is the deploy artifact for
providers that expect prebuilt files.
Project structure
| Path | Purpose |
|---|---|
pages/ | Route files for the generated site. |
components/ | Reusable template components used by pages. |
public/ | Static files copied as-is to the output. |
dist/ | Final production build generated by Vite. |
Vite config
Keep @lediv/vite-plugin enabled in vite.config.js so page and
component resolution stays consistent.
import { defineConfig } from 'vite';
import lediv from '@lediv/vite-plugin';
export default defineConfig({
plugins: [lediv()],
}); For deeper Vite setup and features, see the official docs.