vue-dotnet-vite

Vue.js bridge for embedding components in ASP.NET MVC apps.
743 3
Install
npm install vue-dotnet-vite
Latest Version:1.0.2
Vue:3
License:MIT
Last Updated:Oct 5, 2026
Links: GitHub  ·  npm
Maintainer: dmitri-selin

vue-dotnet-vite

Vite build-tool provider for embedding Vue.js components in ASP.NET MVC views. Part of the VueDotNet framework.

Install

npm install -D vite @vitejs/plugin-vue vue-dotnet-vite

vue (v3.5+) is a required peer dependency.

Usage

Add the plugin to your Vite config:

// vite.config.ts
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { vueDotnet } from 'vue-dotnet-vite/vite';

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

Place your Vue components under src/components/ and build:

npx vite build

The plugin auto-registers every component matching src/components/**/*.vue under its file basename in both PascalCase and kebab-case (TheButton.vue → TheButton / the-button), builds a UMD bridge with vue externalized to the global Vue, and writes:

  • dist/VueDotNet.umd.js
  • dist/VueDotNet.css

Related Packages

vue-dotnet-webpack

Webpack build-tool provider for the VueDotNet bridge.

911 3
vue-dotnet-base

Base runtime for embedding Vue components in ASP.NET MVC apps.

799 3
vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
@vue-vine/vite-plugin

Official Vite plugin for Vue Vine

95,680 1,442
vite-plugin-git-revision

Vite plugin that generates VERSION and COMMITHASH files during build based on a...

21,961 11

Version History

Version Released Vue License
1.0.2 ^3.5.0 MIT
1.0.1 ^3.5.0 MIT
1.0.0 ^3.5.0 MIT
0.0.0 ^3.5.0 MIT