webpacker.yml 956 Bytes
Newer Older
1 2 3
# Note: You must restart bin/webpack-dev-server for changes to take effect

default: &default
4 5
  source_path: app/javascript
  public_output_path: packs
6 7 8 9 10 11 12 13 14
  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

15 16
development:
  <<: *default
17
  compile: true
18

19
  dev_server:
20 21 22
    host: localhost
    port: 3035
    hmr: false
23 24
    https: false

25 26
test:
  <<: *default
27

28
  # Compile test packs to a separate directory
29
  public_output_path: packs-test
30

31 32 33 34
  # CircleCI precompiles packs prior to running the tests.
  # Also avoids race conditions in parallel_tests.
  compile: false

35 36
production:
  <<: *default
37 38 39 40 41 42

  # Production depends on precompilation of packs prior to booting for performance.
  compile: false

  # Cache manifest.json for performance
  cache_manifest: true