Skip to content

Abstract build/ path in the manifest.json file #992

@Julienblc

Description

@Julienblc

Hello all,

I use Webpack Encore in my SF5 project.

When I build, i get this kind on manifest.json file :
{ "build/images/foo.png": "build/images/foo.41de51.png" }
So in my twig i get the image like this : <img src="{{ asset('build/images/foo.png') }}" />

My question : is there a way to abstract the path and remove the "build/" part ? I would like to give only images/foo.png to my asset function in my twig.

Thank you and nice day to everyone :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions