vite-plugin-lumix
v0.1.4
Published
Vite plugin for LuminJS
Readme
vite-plugin-lumix
The official Vite plugin for LumixJS. It provides seamless integration for compiling .lumix files, Hot Module Replacement (HMR), and professional diagnostic reporting.
Installation
npm install -D vite-plugin-lumixConfiguration
Add the plugin to your vite.config.ts (or vite.config.js):
import { defineConfig } from "vite";
import lumix from "vite-plugin-lumix";
export default defineConfig({
plugins: [
lumix({
// Configuration options
}),
],
});Options
title: Set the default document title.favicon: Set the path to the favicon.head: Inject custom meta, link, or script tags into the<head>.rootId: Customize the ID of the root element (default: "app").
Features
Fast Transformation
The plugin uses the high-performance @lumix-js/compiler to transform .lumix files into optimized JavaScript modules on the fly.
Hot Module Replacement (HMR)
Planed...
Professional Diagnostics
If a TypeScript error or a syntax issue is detected, the plugin provides a clear, highlighted code frame in your terminal, detailing exactly where the problem is in your source file.
License
MIT
