@microsoft/managed-apps-vite-plugin
v0.3.22
Published
Vite plugin for Microsoft Managed Apps
Downloads
3,205
Readme
@microsoft/managed-apps-vite-plugin
Vite plugin for developing Microsoft managed apps. Intended to work with the @microsoft/managed-apps-cli.
Install
npm install --save-dev @microsoft/managed-apps-vite-pluginUsage
Add the plugin to your Vite config:
// vite.config.ts
import { defineConfig } from 'vite';
import { managedApps } from '@microsoft/managed-apps-vite-plugin';
export default defineConfig({
plugins: [managedApps()],
});Scaffold the app and its ms.config.json with ms app create (or ms app init for an existing app), then start the dev server with ms app dev. The plugin prints a Local Play URL — open it to run your app. Changes to ms.config.json restart the server automatically.
Requires Vite >= 5.0.0.
Learn more in the Microsoft managed apps documentation.
