Skip to content
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

Support manifest.json with Encore #113

Open
vince83110 opened this issue Aug 8, 2018 · 0 comments
Open

Support manifest.json with Encore #113

vince83110 opened this issue Aug 8, 2018 · 0 comments

Comments

@vince83110
Copy link

vince83110 commented Aug 8, 2018

I use Symfony 4.1, and I use encore. My images are copied from assets directory to the public directory.

The problem is versioning, each image's name is change with a hash.

SF allows to use default asset() function to handle those hashes :

    assets:
        json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'

Any chance your bundle can manages those hashes ?
For now, image('build/images/image.jpg") doesn't find the image, but asset('build/images/image.jpg') finds it.

The image name is like : image.31f15875.jpg

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

1 participant