webpacker.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. - .jsx
  15. - .sass
  16. - .scss
  17. - .css
  18. - .module.sass
  19. - .module.scss
  20. - .module.css
  21. - .png
  22. - .svg
  23. - .gif
  24. - .jpeg
  25. - .jpg
  26. development:
  27. <<: *default
  28. compile: true
  29. # Reference: https://webpack.js.org/configuration/dev-server/
  30. dev_server:
  31. https: false
  32. host: localhost
  33. port: 3035
  34. public: localhost:3035
  35. hmr: false
  36. # Inline should be set to true if using HMR
  37. inline: true
  38. overlay: true
  39. compress: true
  40. disable_host_check: true
  41. use_local_ip: false
  42. quiet: false
  43. headers:
  44. 'Access-Control-Allow-Origin': '*'
  45. watch_options:
  46. ignored: /node_modules/
  47. test:
  48. <<: *default
  49. compile: true
  50. # Compile test packs to a separate directory
  51. public_output_path: packs-test
  52. production:
  53. <<: *default
  54. # Production depends on precompilation of packs prior to booting for performance.
  55. compile: false
  56. # Cache manifest.json for performance
  57. cache_manifest: true