pcf-vite-harness
Version:
Modern Vite-based development harness for PowerApps Component Framework (PCF) with hot module replacement and PowerApps-like environment simulation
26 lines (20 loc) • 583 B
text/typescript
import { createPCFViteConfig } from 'pcf-vite-harness'
export default createPCFViteConfig({
// Port for the dev server
port: 3000,
// Port for HMR WebSocket
hmrPort: 3001,
// Open browser automatically
open: true,
// Dataverse URL (can also be set via VITE_DATAVERSE_URL env var)
// dataverseUrl: 'https://yourorg.crm.dynamics.com/',
// Additional Vite configuration
viteConfig: {
// Add any additional Vite configuration here
resolve: {
alias: {
'@': '../YourPCFComponent', // Adjust path to your PCF component
},
},
},
})