Get started with upb CDN
Apache-2.0 licensed
UnoPlatform Bridge library bridges .NET and web projects, enabling Uno Platform component use.
Tags:- upb
- library
- universal
- powerline
- bus
- command
- lib
- lighting
- switches
- control
Stable version
Copied!
How to start using upb CDN
// Include UPB library from the CDN
const Upb = require('https://cdn.cdnhub.io/upb/2.0.1/upb.min.js');
// Initialize UPB with a configuration object
Upb.init({
name: 'my-app', // Name of your app
version: '1.0.0', // Version of your app
input: 'src/', // Input directory containing your app's source files
output: 'dist/', // Output directory for your app's bundled files
minify: true, // Enable minification
sourceMaps: false, // Disable source maps
transforms: {
// Add any desired transforms here
},
plugins: [
// Add any desired plugins here
],
});
// Build your app
Upb.build()
.then(() => {
console.log('Build completed successfully!');
})
.catch((error) => {
console.error('Build failed:', error);
});