-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
webpacker.yml
77 lines (61 loc) · 1.56 KB
/
webpacker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Note: You must restart bin/webpacker-dev-server for changes to take effect
default: &default
source_path: app/packs
source_entry_path: entrypoints
public_root_path: public
public_output_path: packs
cache_path: tmp/webpacker
webpack_compile_output: false
# Additional paths webpack should look up modules
# ['app/assets', 'engine/foo/app/assets']
additional_paths:
- app/assets
- /etc/yarn
- some.config.js
- app/elm
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
static_assets_extensions:
- .jpg
- .jpeg
- .png
- .gif
- .tiff
- .ico
- .svg
extensions:
- .mjs
- .js
development:
<<: *default
compile: true
# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: localhost
port: 3035
public: localhost:3035
hmr: false
overlay: true
disable_host_check: true
use_local_ip: false
pretty: false
test:
<<: *default
compile: true
# Compile test packs to a separate directory
public_output_path: packs-test
production:
<<: *default
# Production depends on precompilation of packs prior to booting for performance.
compile: false
# Cache manifest.json for performance
cache_manifest: true
staging:
<<: *default
# Production depends on precompilation of packs prior to booting for performance.
compile: false
# Cache manifest.json for performance
cache_manifest: true
# Compile staging packs to a separate directory
public_output_path: packs-staging