Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

Repository files navigation

Coding standards statusStatic analysis statusUnit tests statusTotal DownloadsLatest Stable VersionLicense

Nuxed Asset

The Nuxed Asset component manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files.

Installation

This package can be installed withComposer.

$composer require nuxed/asset

Example

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');}

Security

For information on reporting security vulnerabilities in Nuxed, seeSECURITY.md.


License

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

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp