CONNECT-platform

You can add your own client-side scripts to the codedoc bundle using bundle configuration and its init property. Lets say we want to add a function that says hellow:

STEP 1

.codedoc/hellow.ts
1linkimport { funcTransport } from '@connectv/sdh/transport';

8linkexport const hellow$= /*#__PURE__*/funcTransport(hellow); STEP2 Add the transported hellow$ function to your bundle's initialization scripts:

.codedoc/config.ts

6linkimport { hello$} from './hellow'; 7link 8link//... 9link 10linkexport const config = /*#__PURE__*/configuration({ 11link //... 12link bundle: { 13link init: [ 14link ...DefaultConfig.bundle.init, 15link hellow$

warning WARNING

Make sure you include DefaultConfig.bundle.init in your initialization scripts array, as otherwise the initialization script for many of CODEDOC features will not be loaded and they will stop working.

Bundle Configuration
Markdownchevron_right
Code Featureschevron_right

Images & Assets

Configurationchevron_right
Customizationchevron_right