dravencms / webloader
Temporary DravenCMS webloader
Requires
- php: >= 7.1
- ext-json: *
- nette/application: >=3.0
- nette/di: >=3.0
- nette/utils: >=3.0
This package is auto-updated.
Last update: 2026-08-24 22:39:03 UTC
README
Maintained WebLoader fork used by DravenCMS to combine, filter, cache, and render CSS and JavaScript assets in Nette applications.
Features
- Nette DI extension and loader factories.
- Named CSS and JavaScript bundles.
- Local and remote files.
- Content filters and per-file filters.
- CSS URL rewriting and SCSS processing hooks.
- Debug panel and console generation support.
- Optional async, defer, nonce, and absolute-URL output settings.
Installation
composer require dravencms/webloader
DravenCMS Application registers the Nette extension and configures default source and output directories. A standalone integration can register WebLoader\Nette\Extension directly.
Configuration
webloader: css: frontend: files: - app/css/site.css js: frontend: files: - app/js/site.js remoteFiles: - https://example.com/library.js
Render named bundles through the CssLoader and JavaScriptLoader components created by WebLoader\Nette\LoaderFactory. DravenCMS frontend and admin base presenters already expose these components.
Generated files are normally written to www/webtemp. Clear stale files there after changing bundle configuration or copied package assets.
License
This package is licensed under the LGPL-3.0 license.