﻿<p align="center">
  <a href="https://github.com/EvotecIT/CDN"><img src="https://img.shields.io/github/license/EvotecIT/CDN.svg"></a>
  <a href="https://github.com/EvotecIT/CDN"><img src="https://img.shields.io/github/languages/top/evotecit/CDN.svg"></a>
  <a href="https://github.com/EvotecIT/CDN"><img src="https://img.shields.io/github/languages/code-size/evotecit/CDN.svg"></a>
  <a href="https://www.jsdelivr.com/package/gh/evotecit/cdn"><img src="https://data.jsdelivr.com/v1/package/gh/evotecit/cdn/badge"></a>
</p>

<p align="center">
  <a href="https://twitter.com/PrzemyslawKlys"><img src="https://img.shields.io/twitter/follow/PrzemyslawKlys.svg?label=Twitter%20%40PrzemyslawKlys&style=social"></a>
  <a href="https://evotec.xyz/hub"><img src="https://img.shields.io/badge/Blog-evotec.xyz-2A6496.svg"></a>
  <a href="https://www.linkedin.com/in/pklys"><img src="https://img.shields.io/badge/LinkedIn-pklys-0077B5.svg?logo=LinkedIn"></a>
</p>

This code is here to support [PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML) project.
All files hosted here are available on [JSDelivr CDN](https://www.jsdelivr.com).
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/cdn@0.0.4/JS/apexchartsEvents.js>
- Auto-Minified: <https://cdn.jsdelivr.net/gh/evotecit/cdn@0.0.4/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"
```