2017-05-03 02:04:16 +02:00
|
|
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
|
|
|
|
default: &default
|
2017-06-18 02:57:09 +02:00
|
|
|
source_path: app/javascript
|
|
|
|
public_output_path: packs
|
2017-09-27 14:41:54 +02: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 02:04:16 +02:00
|
|
|
development:
|
|
|
|
<<: *default
|
2017-09-27 14:41:54 +02:00
|
|
|
compile: true
|
2017-05-03 02:04:16 +02:00
|
|
|
|
2017-06-18 02:57:09 +02:00
|
|
|
dev_server:
|
2017-09-27 14:41:54 +02:00
|
|
|
host: localhost
|
|
|
|
port: 3035
|
|
|
|
hmr: false
|
2017-06-18 02:57:09 +02:00
|
|
|
https: false
|
|
|
|
|
2017-05-03 02:04:16 +02:00
|
|
|
test:
|
|
|
|
<<: *default
|
2017-06-18 02:57:09 +02:00
|
|
|
|
2017-09-27 14:41:54 +02:00
|
|
|
# Compile test packs to a separate directory
|
2017-06-18 02:57:09 +02:00
|
|
|
public_output_path: packs-test
|
2017-05-03 02:04:16 +02:00
|
|
|
|
2018-09-13 13:33:29 +02:00
|
|
|
# CircleCI precompiles packs prior to running the tests.
|
|
|
|
# Also avoids race conditions in parallel_tests.
|
|
|
|
compile: false
|
|
|
|
|
2017-05-03 02:04:16 +02:00
|
|
|
production:
|
|
|
|
<<: *default
|
2017-09-27 14:41:54 +02:00
|
|
|
|
|
|
|
# Production depends on precompilation of packs prior to booting for performance.
|
|
|
|
compile: false
|
|
|
|
|
|
|
|
# Cache manifest.json for performance
|
|
|
|
cache_manifest: true
|