CDN assets now have a -embed part to allow for eg a -react build in the future
CDN assets are now placed in dist/cdn to enable clear separation
Deploy workflow only uploads dist/cdn to CDN
CDN build is now in iife format. A global whereby variable is declared containing the exports of the given entrypoint
Pin version of Github action used to sync data to S3
NOTE!
A follow-up PR will be required to also make some adjustments to the support/v1 branch so legacy builds are put in dist/cdn, as the deployment workflow changes will affect any release.
Description
Some small adjustments before the 2.0.0 release:
-embed
part to allow for eg a-react
build in the futuredist/cdn
to enable clear separationdist/cdn
to CDNwhereby
variable is declared containing the exports of the given entrypointNOTE! A follow-up PR will be required to also make some adjustments to the support/v1 branch so legacy builds are put in
dist/cdn
, as the deployment workflow changes will affect any release.Testing
http-server
)yarn build
dist/cdn/v2-embed.js
next to your index.htmlJOINED
in the consoletype="module"
in the script tagwhereby
global variable with the SDK version