reprise.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Reprise works with zero configuration. Every option below is shown at its
  2. # default value; uncomment the block and tweak what you need.
  3. # See https://github.com/symfony/reprise/blob/main/doc/index.rst#configuration
  4. # reprise:
  5. # Directory the @symfony/reprise plugin writes entrypoints.json and manifest.json into.
  6. # output_path: '%kernel.project_dir%/public/build'
  7. # Throw when entrypoints.json or a requested entry is missing, instead of rendering nothing.
  8. # strict_mode: true
  9. # A framework.assets package name used to resolve entry URLs. null uses the default package.
  10. # asset_package: null
  11. # crossorigin attribute set alongside SRI integrity: false, 'anonymous' or 'use-credentials'.
  12. # crossorigin: false
  13. # Register rendered assets as WebLink HTTP/2 Link: preload headers (needs symfony/web-link).
  14. # preload: true
  15. # Default attributes added to every rendered <script> / <link> tag.
  16. # script_attributes: []
  17. # link_attributes: []
  18. reprise:
  19. script_attributes:
  20. 'data-turbo-track': reload
  21. link_attributes:
  22. 'data-turbo-track': reload
  23. framework:
  24. assets:
  25. json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
  26. when@prod:
  27. reprise:
  28. # In prod we'd rather render nothing than let a missing entrypoints.json (or entry) take the app down with a 500.
  29. strict_mode: false
  30. # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
  31. cache: true