https://github.com/npx-bin/angular-cdnify
🎯 A utility for easily updating the base path in a html file via NodeJS.
https://github.com/npx-bin/angular-cdnify
angular base basepath cdn cdnify
Last synced: 3 months ago
JSON representation
🎯 A utility for easily updating the base path in a html file via NodeJS.
- Host: GitHub
- URL: https://github.com/npx-bin/angular-cdnify
- Owner: npx-bin
- License: mit
- Created: 2020-06-12T05:54:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T06:13:24.000Z (about 6 years ago)
- Last Synced: 2025-09-25T21:59:31.177Z (9 months ago)
- Topics: angular, base, basepath, cdn, cdnify
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/angular-cdnify
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.: ``
After invoking `updateBasePath` from the above example, the index.html file will be updated as below:
``
#### License: MIT (https://mit-license.kcak11.com)