2017-05-03 09:04:16 +09:00
|
|
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
|
|
|
|
default: &default
|
2017-06-18 09:57:09 +09:00
|
|
|
source_path: app/javascript
|
|
|
|
public_output_path: packs
|
2017-09-27 21:41:54 +09:00
|
|
|
cache_path: tmp/cache/webpacker
|
|
|
|
|
|
|
|
# Additional paths webpack should lookup modules
|
|
|
|
# ['app/assets', 'engine/foo/app/assets']
|
|
|
|
resolved_paths: []
|
|
|
|
|
|
|
|
# Reload manifest.json on all requests so we reload latest compiled packs
|
|
|
|
cache_manifest: false
|
|
|
|
|
2017-05-03 09:04:16 +09:00
|
|
|
development:
|
|
|
|
<<: *default
|
2017-09-27 21:41:54 +09:00
|
|
|
compile: true
|
2017-05-03 09:04:16 +09:00
|
|
|
|
2017-06-18 09:57:09 +09:00
|
|
|
dev_server:
|
2017-09-27 21:41:54 +09:00
|
|
|
host: localhost
|
|
|
|
port: 3035
|
|
|
|
hmr: false
|
2017-06-18 09:57:09 +09:00
|
|
|
https: false
|
|
|
|
|
2017-05-03 09:04:16 +09:00
|
|
|
test:
|
|
|
|
<<: *default
|
2017-06-18 09:57:09 +09:00
|
|
|
|
2017-09-27 21:41:54 +09:00
|
|
|
# Compile test packs to a separate directory
|
2017-06-18 09:57:09 +09:00
|
|
|
public_output_path: packs-test
|
2017-05-03 09:04:16 +09:00
|
|
|
|
2018-09-13 20:33:29 +09:00
|
|
|
# CircleCI precompiles packs prior to running the tests.
|
|
|
|
# Also avoids race conditions in parallel_tests.
|
|
|
|
compile: false
|
|
|
|
|
2017-05-03 09:04:16 +09:00
|
|
|
production:
|
|
|
|
<<: *default
|
2017-09-27 21:41:54 +09:00
|
|
|
|
|
|
|
# Production depends on precompilation of packs prior to booting for performance.
|
|
|
|
compile: false
|
|
|
|
|
|
|
|
# Cache manifest.json for performance
|
|
|
|
cache_manifest: true
|