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.

92 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. - .gif
  25. - .eot
  26. - .otf
  27. - .ttf
  28. - .woff
  29. - .woff2
  30. extensions:
  31. - .mjs
  32. - .js
  33. - .sass
  34. - .scss
  35. - .css
  36. - .module.sass
  37. - .module.scss
  38. - .module.css
  39. - .png
  40. - .svg
  41. - .gif
  42. - .jpeg
  43. - .jpg
  44. development:
  45. <<: *default
  46. compile: true
  47. # Reference: https://webpack.js.org/configuration/dev-server/
  48. dev_server:
  49. https: false
  50. host: localhost
  51. port: 3035
  52. public: localhost:3035
  53. hmr: false
  54. # Inline should be set to true if using HMR
  55. inline: true
  56. overlay: true
  57. compress: true
  58. disable_host_check: true
  59. use_local_ip: false
  60. quiet: false
  61. headers:
  62. 'Access-Control-Allow-Origin': '*'
  63. watch_options:
  64. ignored: '**/node_modules/**'
  65. test:
  66. <<: *default
  67. # CircleCI precompiles packs prior to running the tests.
  68. # Also avoids race conditions in parallel_tests.
  69. compile: false
  70. # Compile test packs to a separate directory
  71. public_output_path: packs-test
  72. production:
  73. <<: *default
  74. # Production depends on precompilation of packs prior to booting for performance.
  75. compile: false
  76. # Cache manifest.json for performance
  77. cache_manifest: true