angular-cdnify

1.0.2 • Public • Published

angular-cdnify

Install Package:

npm i angular-cdnify

Usage example in code:

const ngCDN = require("angular-cdnify");
ngCDN.updateBasePath("index.html", "https://mycdn.example.com/some-folder/");

Note: The index.html file should contain the placeholder pattern text {[BASE_PATH]}.
This placeholder pattern text will get replaced with the cdnURL provided as the second argument to the updateBasePath function.

e.g.: <base href="{[BASE_PATH]}" />

After invoking updateBasePath from the above example, the index.html file will be updated as below:
<base href="https://mycdn.example.com/some-folder/" />

License: MIT (https://mit-license.kcak11.com)

/angular-cdnify/

    Package Sidebar

    Install

    npm i angular-cdnify

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.52 kB

    Total Files

    5

    Last publish

    Collaborators

    • kcak11.npm