devv-code-vite-plugin
v1.1.1
Published
Vite plugin for Devv Code visual editor integration
Downloads
23
Maintainers
Readme
Devv Code Vite Plugin
A minimalist Vite plugin with a hidden easter egg. No functionality, just a secret verification marker.
Installation
Production (Stable)
npm install devv-code-vite-plugin
# or
yarn add devv-code-vite-plugin
# or
pnpm add devv-code-vite-pluginDevelopment (Latest)
npm install devv-code-vite-plugin@dev
# or
yarn add devv-code-vite-plugin@dev
# or
pnpm add devv-code-vite-plugin@devUsage
Add the plugin to your vite.config.ts:
import { defineConfig } from 'vite';
import devvCode from 'devv-code-vite-plugin';
export default defineConfig({
plugins: [
devvCode() // No options needed
]
});What Does It Do?
Absolutely nothing! 🎉
This plugin has zero functionality and won't affect your application in any way.
Easter Egg Test 🥚
Want to verify the plugin is loaded? There's a hidden easter egg:
- Install and configure the plugin
- Run your Vite dev server
- Open your app in the browser
- Open the browser console (F12)
- Type the magic command:
window.__DEVV_CODE_VITE_PLUGIN_INSPECTOR__()- You should see:
"🥚 Plugin Active! Version: Secret 🎯"If you see this message, the plugin is working (doing nothing) correctly!
Features
- ✅ Zero functionality
- ✅ Zero performance impact
- ✅ Zero dependencies
- ✅ One secret easter egg
- ✅ ~400B bundle size
Development
# Install dependencies
npm install
# Build the plugin
npm run build
# Run in watch mode
npm run devPublishing
Development Release
npm run build
npm version prerelease --preid=dev
npm publish --tag devProduction Release
npm run build
npm version patch
npm publishWhy?
Sometimes you need a plugin that does absolutely nothing but needs to be there. This is that plugin.
License
MIT
Contributing
Feel free to contribute nothing! PRs that add functionality will be rejected. PRs that remove functionality will be celebrated.
