assets
assets copied to clipboard
Assets management
There is not way to pass configuration into `AssetBundle` class to a contructor, only to public properties. I'd like to have a method that accepts an object of `AssetBundle` and...
Support manifest.json generated by webpack/vite (e.g. https://vitejs.dev/guide/backend-integration.html) Like in https://symfony.com/doc/current/components/asset.html#json-file-manifest
https://github.com/yiisoft/assets/blob/14984b2c8a87236da8c8ef5a4f1273d4ff8a36bc/src/AssetLoader.php#L50 https://github.com/yiisoft/assets/blob/14984b2c8a87236da8c8ef5a4f1273d4ff8a36bc/src/AssetLoader.php#L56
According to documentation I add `$publishOptions['only']` in my project, but it doesn't work ### What steps will reproduce the problem? ```php class BootstrapAsset extends AssetBundle { public ?string $basePath =...
### Proposed new feature or change In most cases this is more convenient than using `with*` method.
Updated the documentation examples. - Fixes #168
### Description https://github.com/yiisoft/assets/blob/master/docs/guide/en/asset-bundles.md Currently, examples are incorrect: ```php public array $publishOptions = [ 'only' => [ 'css/bootstrap.css', 'js/bootstrap.js', ] ]; ``` `only` option doesn't exist. `filter` should be used instead.