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