@muslimmessenger/vite-plugin-mini-apps
v1.0.3
Published
vite plugin for miniapps
Downloads
19
Readme
Create a new mini app for the Islamic Messenger
npx @muslimmessenger/create-mini-app@latest
or use plugin manually
npm i @muslimmessenger/vite-plugin-mini-apps
import { VitePluginMiniApps } from '@muslimmessenger/vite-plugin-mini-apps'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
/* other plugins */
VitePluginMiniApps({
origin: 'https://example.com',
miniAppsConfig: {
apps: [
{
name: 'Example app',
// links relative to vite root
app_url: '.',
background_color: '#ddd',
icon: 'config/icon.png',
image: 'config/image.png',
},
],
},
}),
],
})