Local Development

Exported Lediv projects are standard Vite projects. Run them locally, edit them with any tool, and plug them into your own build scripts or CI/CD.

Run locally

Unzip the export, install dependencies and start the dev server.

npm install
npm run dev

Build output

Create a production build when the project is ready to deploy.

npm run build

The build goes to dist/, the folder to upload to hosts that expect prebuilt files. To check it locally first, run the preview server.

npm run preview

Project structure

Path Purpose
pages/ Route files, one per page.
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. It resolves components and renders the templates into the pages of your site.

import { defineConfig } from 'vite';
import lediv from '@lediv/vite-plugin';

export default defineConfig({
  plugins: [lediv()],
});

For everything else about Vite, see the official docs.


Next steps