Skip to main content

directoryUrl: string|undefined

Use directoryUrl if you need to serve the compiled JS apps from a different place than the location of the registry.json. This particularly useful when you want to serve the JS application from a CDN. It is also useful when you need to change the location where the applications live relative to the registry.json.

If left empty the CLI will assume that the JS apps will be uploaded in a folder called widgets alongside with the registry.json file. This is the way @js-widgets/webpack-cli produces the assets, if you upload the output directory directly, you can leave directoryUrl empty.

Examples