webpacker.yml 1.4 KB

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