Skip to content

Work with multiple Encore configurations #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
berrymore opened this issue Jan 15, 2019 · 1 comment
Closed

Work with multiple Encore configurations #30

berrymore opened this issue Jan 15, 2019 · 1 comment

Comments

@berrymore
Copy link

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 #}
@weaverryan
Copy link
Member

There is a way to specify multiple json_manifest_path via asset packages - it's just not a well-known feature. See the comments here: #17 (comment)

I hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants