vue-dotnet-webpack

Webpack build-tool provider for the VueDotNet bridge.
911 3
Install
npm install vue-dotnet-webpack
Latest Version:1.0.2
Vue:3
License:MIT
Last Updated:Oct 5, 2026
Links: GitHub  ·  npm
Maintainer: dmitri-selin

vue-dotnet-webpack

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

Install

npm install -D webpack webpack-cli vue-loader vue-dotnet-webpack

vue (v3.5+) and webpack (v5+) are required peer dependencies.

Usage

Generate a ready-to-run webpack configuration:

// webpack.config.mjs
import { vueDotnet } from 'vue-dotnet-webpack/webpack';

export default vueDotnet();

Then build:

npx webpack

Or embed the provider into an existing configuration as a plugin:

// webpack.config.mjs
import { VueDotnetWebpackPlugin } from 'vue-dotnet-webpack/webpack';

export default {
  plugins: [new VueDotnetWebpackPlugin()],
};

The package is ESM-only, so use an ESM webpack config (webpack.config.mjs or "type": "module").

The provider 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

Components with <script lang="ts"> need a tsconfig.json with at least one TypeScript input (e.g. an env.d.ts), otherwise ts-loader reports "No inputs were found".

Related Packages

vue-dotnet-base

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

799 3
vue-dotnet-vite

Vue.js bridge for embedding components in ASP.NET MVC apps.

743 3
duplicate-dependencies-webpack-plugin

webpack plugin to find duplicated dependencies from your bundle

332,104 6
aiot-vue-cli

阿里云iot 小程序构建工具

19,608
@anejs/anne-preset-vue

anne for anne-preset-vue

3,886

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
Pre-releases (1)
Version Released License
0.0.0-stage