- Notifications
You must be signed in to change notification settings - Fork0
The Nuxed Asset component manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files.
License
NotificationsYou must be signed in to change notification settings
nuxed/asset
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The Nuxed Asset component manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files.
This package can be installed withComposer.
$composer require nuxed/asset
usenamespace Nuxed\Asset;usenamespace Nuxed\Asset\VersionStrategy;<<__EntryPoint>>asyncfunctionmain():Awaitable<void> {// For example, the manifest file might look like this:// {// "main.js": "main.abc123.js",// "css/styles.css": "css/styles.555abc.css"// }$versionStrategy=newVersionStrategy\JsonManifestVersionStrategy('/path/to/manifest.json');$cdns=vec['https://asset-s1.example.com/','https://asset-s2.example.com/', ];$package=newAsset\UrlPackage($cdns,$versionStrategy);// https://asset-s2.example.com/css/styles.555abc.cssechoawait$package->getUrl('css/styles.css');}
For information on reporting security vulnerabilities in Nuxed, seeSECURITY.md.
Nuxed is open-sourced software licensed under the MIT-licensed.
About
The Nuxed Asset component manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files.
Topics
Resources
License
Security policy
Stars
Watchers
Forks
Packages0
No packages published