Nette Assets is a new library that unifies static file management in Nette PHP applications. It automatically handles image dimensions, cache busting through versioning, and provides native Vite integration with Hot Module Replacement. The library requires minimal configuration and offers custom mappers for various use cases

8m read time From blog.nette.org
Post cover image
Table of contents
No configuration!Let's add some configurationWhat if the file simply doesn't exist?Working with assets in PHP codeFirst-class Vite integrationPower of custom mappers: Real examplesNette Assets: more elegant asset management

Sort: