@vue-scan/vite-plugin-vue-scan
v0.1.2
Published
Vite plugin for injecting Vue Scan during local development.
Downloads
385
Maintainers
Readme
@vue-scan/vite-plugin-vue-scan
@vue-scan/vite-plugin-vue-scan injects Vue Scan into Vite dev sessions and rewrites Vue imports through the scan shim.
Use it for standard Vite + Vue projects.
Install
bun add -D @vue-scan/scan @vue-scan/vite-plugin-vue-scanUsage
Register the plugin in vite.config.ts:
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
import vueScan from '@vue-scan/vite-plugin-vue-scan';
export default defineConfig({
plugins: [
vue(),
vueScan({
enabled: true,
autoInject: true,
}),
],
});The plugin only applies in serve mode.
Options
{
enabled: true,
autoInject: true,
}enabled: turns the plugin on or off in dev modeautoInject: injects the Vue Scan auto runtime into HTML during devauto: legacy alias forautoInject
Related Packages
@vue-scan/scanprovides the core runtime loaded by this plugin@vue-scan/nuxtis the Nuxt-specific integration
Repository Docs
- Project workflow, release flow, and hotfix policy:
https://github.com/ivan-cavero/vue-scan#git-flow - Full installation and integration guide:
https://github.com/ivan-cavero/vue-scan
