Open vince83110 opened 6 years ago
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.
image('build/images/image.jpg")
asset('build/images/image.jpg')
The image name is like : image.31f15875.jpg
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 :
Any chance your bundle can manages those hashes ? For now,
image('build/images/image.jpg")
doesn't find the image, butasset('build/images/image.jpg')
finds it.The image name is like : image.31f15875.jpg