Skip to content

feat: fallback CDN #23

@mastilver

Description

@mastilver

inspired by jso0/html-webpack-cdn-plugin#1

Depends on #13


options.fallbackResolver

Type: string || function

Default: 'module-to-cdn' || 'module-to-jsdelivr'

Similar to resolver but the module will be loaded from this CDN only if the main CDN is experiencing issues


It will create a new file which will contains for each module:

window.React || document.write('<script src="https://unpkg.com/[email protected]/dist/react.js"><\/script>');

NOTE: resolver and fallback must both return a valid cdnConfig otherwise the module is ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions