reprise.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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. framework:
  19. assets:
  20. json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
  21. when@prod:
  22. reprise:
  23. # In prod we'd rather render nothing than let a missing entrypoints.json (or entry) take the app down with a 500.
  24. strict_mode: false
  25. # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
  26. cache: true