Skip to content

Instantly share code, notes, and snippets.

View svdoever's full-sized avatar

Serge van den Oever svdoever

View GitHub Profile
@svdoever
svdoever / loadbundles.js
Last active August 7, 2018 21:52
NodeJS: load multiple bundles from local and remote (http, https)
// bundleConfiguration is a javascript object in the following format:
// let bundleConfiguration = {
// default: './server-bundle',
// pwa: './server-bundle',
// pwaremote: 'http://myserver.com/server-bundle.js'
// };
// bundles is an empty onbject, i.e. let bundles = {};
// the function returns an array of promises to wait for:
// bundleLoaderPromises = loadBundles(bundlesConfiguration, bundles);
// Promise.all(bundleLoaderPromises).then(() => {
@svdoever
svdoever / usebundles.js
Created August 7, 2018 22:23
Example of how to use the loadBundles function as defined in https://gist.github.com/svdoever/aebdbc6acf0bd15e354c18af9ed1bd47
process.env.ComponentServerBundles = JSON.stringify({
default: './server-bundle',
pwa: './server-bundle',
pwaremote: 'http://myserver.com/server-bundle.js'
});
// Handy for debugging to use a direct require so Visual Studio code can set breakpoints in the code
// of the bundle we are debugging.
let bundle_to_debug = require('./server-bundle');
if (process.env.NODE_ENV === 'production') {
@svdoever
svdoever / BotFramework Web Chat StyleOptions.md
Last active August 19, 2025 19:57
An overview of all the StyleOptions that can be specified in a StyleSet for the BotFramework React Web Chat component.

🎨 Basic Styling

  • accent: string — Web Chat component accent color.
    Default: #0063B1
  • backgroundColor: string — Transcript background color.
    Default: White
  • subtle: string — Secondary component color.
    Default: #767676
  • paddingRegular: number — Default padding for most visual components.
    Default: 10
  • paddingWide: number — Padding for suggestedAction buttons.