Skip to content

Work with multiple Encore configurations #30

Closed
@berrymore

Description

@berrymore

This #13 issue is implemented. It solves problem which happens while using multiple Encore configurations. Now it is possible to specify as much builds as we want. But it solves "multiple configurations" problem only for CSS and JS files.

I'm using Encore.copyFiles() to copy my static files (images, videos, etc). Documentation says that we need to use asset component which uses json_manifest_path. And there is no option to specify multiple manifests.

So maybe it would be a nice idea to add something like ManifestLookup and encore_asset function that will resolve path to the static files for us.

{{ encore_asset('images/top.jpg', 'landing') }}
{# Will print /builds/landing/images/top.hash.jpg #}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions