Using the CDN
PackForge provides ready-to-use CDN references for the files available in each package version. You can copy CSS, JavaScript or direct file URLs from the package details page.
CDN file URLs
PackForge generates CDN URLs from the actual file path available for the selected package version.
You normally don't need to build CDN URLs manually. Open the package details page, select the file you need and copy the generated reference.
https://cdn.packforge.ir/{file-path}
PackForge builds the URL from the file path stored for the selected package version. Copy the generated value rather than manually constructing the URL.
CSS files
CSS files are shown as ready-to-use
<link>
elements.
<link href="https://cdn.packforge.ir/{file-path}" rel="stylesheet">
Paste the generated
<link>
element inside the
<head>
section of your page.
<head>
<link href="https://cdn.packforge.ir/{file-path}"
rel="stylesheet">
</head>
JavaScript files
JavaScript files are shown as ready-to-use
<script>
elements.
<script src="https://cdn.packforge.ir/{file-path}"></script>
JavaScript references are commonly placed near
the end of the page before the closing
</body>
tag.
<body>
...
<script src="https://cdn.packforge.ir/{file-path}"></script>
</body>
Other files
Files that aren't CSS or JavaScript are displayed as direct CDN URLs.
https://cdn.packforge.ir/{file-path}
Copy the URL and use it wherever your application expects that resource.
Copy CDN references
The package details page provides a Copy button beside available CDN references.
<link href="https://cdn.packforge.ir/{file-path}" rel="stylesheet">
PackForge copies the complete generated reference so you don't need to manually select the URL or HTML tag.
Package versions and CDN files
CDN files belong to package versions. Select the version you want before choosing which file to use.
When your project depends on a specific package version, keep using the files associated with that version until you're ready to upgrade.
What if no CDN files are available?
A package version can exist even when no CDN files are currently available for that version.
In that case, PackForge displays a message indicating that no CDN files are available.
What if the version you need isn't available?
If the package exists but the version you need isn't available, you can submit a Version request through Notify Me.