dravencms/webloader

Temporary DravenCMS webloader

Maintainers

Package info

github.com/dravencms/webloader

Type:dravencms-package

pkg:composer/dravencms/webloader

Transparency log

Statistics

Installs: 156

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 1

0.1.0 2026-07-01 18:16 UTC

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.