You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
1.8 KiB

  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_root_path: public
  6. public_output_path: packs
  7. cache_path: tmp/cache/webpacker
  8. check_yarn_integrity: false
  9. webpack_compile_output: false
  10. # Additional paths webpack should lookup modules
  11. # ['app/assets', 'engine/foo/app/assets']
  12. resolved_paths: []
  13. # Reload manifest.json on all requests so we reload latest compiled packs
  14. cache_manifest: false
  15. # Extract and emit a css file
  16. extract_css: true
  17. static_assets_extensions:
  18. - .jpg
  19. - .jpeg
  20. - .png
  21. - .tiff
  22. - .ico
  23. - .svg
  24. - .eot
  25. - .otf
  26. - .ttf
  27. - .woff
  28. - .woff2
  29. extensions:
  30. - .mjs
  31. - .js
  32. - .sass
  33. - .scss
  34. - .css
  35. - .module.sass
  36. - .module.scss
  37. - .module.css
  38. - .png
  39. - .svg
  40. - .gif
  41. - .jpeg
  42. - .jpg
  43. development:
  44. <<: *default
  45. compile: true
  46. # Reference: https://webpack.js.org/configuration/dev-server/
  47. dev_server:
  48. https: false
  49. host: localhost
  50. port: 3035
  51. public: localhost:3035
  52. hmr: false
  53. # Inline should be set to true if using HMR
  54. inline: true
  55. overlay: true
  56. compress: true
  57. disable_host_check: true
  58. use_local_ip: false
  59. quiet: false
  60. headers:
  61. 'Access-Control-Allow-Origin': '*'
  62. watch_options:
  63. ignored: '**/node_modules/**'
  64. test:
  65. <<: *default
  66. # CircleCI precompiles packs prior to running the tests.
  67. # Also avoids race conditions in parallel_tests.
  68. compile: false
  69. # Compile test packs to a separate directory
  70. public_output_path: packs-test
  71. production:
  72. <<: *default
  73. # Production depends on precompilation of packs prior to booting for performance.
  74. compile: false
  75. # Cache manifest.json for performance
  76. cache_manifest: true