Skip to content

Updated path for the Asset manifest file? #8165

Discussion options

You must be logged in to vote

Three updates needed:

// webpack.config.js

Encore
    // directory where compiled assets will be stored
-    .setOutputPath('public/build/')
+    .setOutputPath('web/build/')
# config/packages/webpack_encore.yaml

webpack_encore:
    # The path where Encore is building the assets - i.e. Encore.setOutputPath()
-    output_path: '%kernel.project_dir%/public/build'
+    output_path: '%kernel.project_dir%/web/build'
# config/packages/webpack_encore.yaml

framework:
    assets:
-        json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
+        json_manifest_path: '%kernel.project_dir%/web/build/manifest.json'

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DavidGarciaCat
Comment options

@DavidGarciaCat
Comment options

Answer selected by DavidGarciaCat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants