This code is here to support PSWriteHTML project. All files hosted here are available on JSDelivr CDN. It's so PSWriteHTML can use CDN capabilities for files that are big but are not hosted anywhere or for files that are modified from originals.
Information about how this works: https://www.jsdelivr.com/features
Project Code: https://www.jsdelivr.com/package/gh/evotecit/cdn
Some examples:
- Non-minified: https://cdn.jsdelivr.net/gh/evotecit/[email protected]/JS/apexchartsEvents.js
- Auto-Minified: https://cdn.jsdelivr.net/gh/evotecit/[email protected]/JS/apexchartsEvents.min.js
git clone https://github.com/EvotecIT/CDN.git
# Remove old folders if they exist
Remove-Item "C:\Support\GitHub\CDN\CSS" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\Support\GitHub\CDN\JS" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\Support\GitHub\CDN\Images" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\Support\GitHub\CDN\Maps" -Recurse -Force -ErrorAction SilentlyContinue
# Create junctions
cmd /c mklink /J "C:\Support\GitHub\CDN\CSS" "C:\Support\GitHub\PSWriteHTML\Resources\CSS"
cmd /c mklink /J "C:\Support\GitHub\CDN\JS" "C:\Support\GitHub\PSWriteHTML\Resources\JS"
cmd /c mklink /J "C:\Support\GitHub\CDN\Images" "C:\Support\GitHub\PSWriteHTML\Resources\Images"
cmd /c mklink /J "C:\Support\GitHub\CDN\Maps" "C:\Support\GitHub\PSWriteHTML\Resources\Maps"