webpacker.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Note: You must restart bin/webpack-dev-server for changes to take effect
  2. default: &default
  3. source_path: app/javascript
  4. source_entry_path: packs
  5. public_output_path: packs
  6. cache_path: tmp/cache/webpacker
  7. # Additional paths webpack should lookup modules
  8. # ['app/assets', 'engine/foo/app/assets']
  9. resolved_paths: []
  10. # Reload manifest.json on all requests so we reload latest compiled packs
  11. cache_manifest: false
  12. extensions:
  13. - .js
  14. - .sass
  15. - .scss
  16. - .css
  17. - .png
  18. - .svg
  19. - .gif
  20. - .jpeg
  21. - .jpg
  22. development:
  23. <<: *default
  24. compile: true
  25. dev_server:
  26. host: localhost
  27. port: 3035
  28. hmr: false
  29. https: false
  30. test:
  31. <<: *default
  32. # Compile test packs to a separate directory
  33. public_output_path: packs-test
  34. # CircleCI precompiles packs prior to running the tests.
  35. # Also avoids race conditions in parallel_tests.
  36. compile: false
  37. production:
  38. <<: *default
  39. # Production depends on precompilation of packs prior to booting for performance.
  40. compile: false
  41. # Cache manifest.json for performance
  42. cache_manifest: true