webpack_encore.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. webpack_encore:
  2. # The path where Encore is building the assets - i.e. Encore.setOutputPath()
  3. output_path: '%kernel.project_dir%/public/build'
  4. # If multiple builds are defined (as shown below), you can disable the default build:
  5. # output_path: false
  6. # Set attributes that will be rendered on all script and link tags
  7. script_attributes:
  8. defer: true
  9. # Uncomment (also under link_attributes) if using Turbo Drive
  10. # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change
  11. # 'data-turbo-track': reload
  12. # link_attributes:
  13. # Uncomment if using Turbo Drive
  14. # 'data-turbo-track': reload
  15. # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
  16. # crossorigin: 'anonymous'
  17. # Preload all rendered script and link tags automatically via the HTTP/2 Link header
  18. # preload: true
  19. # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
  20. # strict_mode: false
  21. # If you have multiple builds:
  22. # builds:
  23. # frontend: '%kernel.project_dir%/public/frontend/build'
  24. # pass the build name as the 3rd argument to the Twig functions
  25. # {{ encore_entry_script_tags('entry1', null, 'frontend') }}
  26. framework:
  27. assets:
  28. json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
  29. #when@prod:
  30. # webpack_encore:
  31. # # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
  32. # # Available in version 1.2
  33. # cache: true
  34. #when@test:
  35. # webpack_encore:
  36. # strict_mode: false