webpack_encore.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  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. # pass "frontend" as the 3rg arg to the Twig functions
  24. # {{ encore_entry_script_tags('entry1', null, 'frontend') }}
  25. # frontend: '%kernel.project_dir%/public/frontend/build'
  26. # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
  27. # Put in config/packages/prod/webpack_encore.yaml
  28. # cache: true