webpack_encore.yaml 1.1 KB

12345678910111213141516171819202122232425
  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. # if using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
  7. # crossorigin: 'anonymous'
  8. # preload all rendered script and link tags automatically via the http2 Link header
  9. # preload: true
  10. # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
  11. # strict_mode: false
  12. # if you have multiple builds:
  13. # builds:
  14. # pass "frontend" as the 3rg arg to the Twig functions
  15. # {{ encore_entry_script_tags('entry1', null, 'frontend') }}
  16. # frontend: '%kernel.project_dir%/public/frontend/build'
  17. # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
  18. # Put in config/packages/prod/webpack_encore.yaml
  19. # cache: true