Vite plugin that converts Makefile .PHONY targets into vite-plus tasks. Version 0.0.5 is the latest stable release. It automatically discovers Makefiles in specified directories, maps prerequisites to task dependencies, and supports prefix strategies for task names. Built on makefile-lossless via NAPI-RS for efficient parsing. Key differentiator: integrates Makefile targets directly into the vite-plus build system, eliminating the need to manually duplicate tasks. Compared to alternatives like just or taskfile, it reuses existing Makefiles without extra configuration. Limitations: only supports .PHONY targets, no variable expansion, pattern rules, or recursive make. Ideal for projects already using Makefiles that want to leverage vite-plus task execution.
npm install vite-plugin-makefileNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures vite-plugin-makefile in a vite-plus project, scanning current and infra directories, excluding 'help' and 'default' targets, and using directory prefix for generated tasks.
Ensure all desired targets are declared as .PHONY in your Makefile.
Avoid using these features in Makefiles intended for plugin use. Use the include option to manage subdirectories instead of recursive Make.
Simplify Makefiles to avoid conditionals in .PHONY targets.
Use 'directory' prefix or a custom function to disambiguate task names.
Ensure your system meets the native dependency requirements (see napi-rs docs).
Run 'npm install vite-plugin-makefile' or 'vp add -D vite-plugin-makefile'.
Use 'import { Makefile } from 'vite-plugin-makefile'' instead of CommonJS require().Change prefix to 'directory' or provide a custom naming function to avoid conflicts.