From 2cd38f4b325c81587766944b05cc3e8580d7da32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFck=20Piera?= Date: Fri, 11 Aug 2017 11:33:39 +0200 Subject: [PATCH] Fix encore versioning config for SF 4 structure --- frontend/encore/versioning.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/encore/versioning.rst b/frontend/encore/versioning.rst index b4b0be78755..49d389f68de 100644 --- a/frontend/encore/versioning.rst +++ b/frontend/encore/versioning.rst @@ -16,7 +16,7 @@ ignoring any existing cache: // ... Encore - .setOutputPath('web/build/') + .setOutputPath('public/build/') // ... + .enableVersioning() @@ -49,7 +49,7 @@ in your ``script`` and ``link`` tags. If you're using Symfony, just activate the # ... assets: # feature is supported in Symfony 3.3 and higher - json_manifest_path: '%kernel.project_dir%/web/build/manifest.json' + json_manifest_path: '%kernel.project_dir%/public/build/manifest.json' That's it! Just be sure to wrap each path in the Twig ``asset()`` function like normal: