annotate config/webpacker.yml @ 481:88fd5722fcb3

Update defaults
author nanaya <me@nanaya.pro>
date Sun, 28 Nov 2021 19:45:05 +0900
parents 802dcd44188e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
468
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
1 # Note: You must restart bin/webpack-dev-server for changes to take effect
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
2
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
3 default: &default
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
4 source_path: app/javascript
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
5 source_entry_path: packs
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
6 public_root_path: public
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
7 public_output_path: packs
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
8 cache_path: tmp/cache/webpacker
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
9 check_yarn_integrity: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
10 webpack_compile_output: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
11
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
12 # Additional paths webpack should lookup modules
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
13 # ['app/assets', 'engine/foo/app/assets']
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
14 resolved_paths: []
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
15
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
16 # Reload manifest.json on all requests so we reload latest compiled packs
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
17 cache_manifest: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
18
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
19 # Extract and emit a css file
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
20 extract_css: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
21
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
22 static_assets_extensions:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
23 - .jpg
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
24 - .jpeg
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
25 - .png
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
26 - .gif
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
27 - .tiff
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
28 - .ico
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
29 - .svg
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
30 - .eot
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
31 - .otf
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
32 - .ttf
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
33 - .woff
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
34 - .woff2
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
35
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
36 extensions:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
37 - .coffee
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
38 - .mjs
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
39 - .js
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
40 - .sass
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
41 - .scss
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
42 - .css
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
43 - .module.sass
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
44 - .module.scss
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
45 - .module.css
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
46 - .png
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
47 - .svg
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
48 - .gif
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
49 - .jpeg
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
50 - .jpg
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
51
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
52 development:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
53 <<: *default
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
54 compile: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
55
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
56 # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
57 check_yarn_integrity: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
58
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
59 # Reference: https://webpack.js.org/configuration/dev-server/
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
60 dev_server:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
61 https: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
62 host: localhost
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
63 port: 3035
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
64 public: localhost:3035
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
65 hmr: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
66 # Inline should be set to true if using HMR
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
67 inline: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
68 overlay: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
69 compress: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
70 disable_host_check: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
71 use_local_ip: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
72 quiet: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
73 pretty: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
74 headers:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
75 'Access-Control-Allow-Origin': '*'
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
76 watch_options:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
77 ignored: '**/node_modules/**'
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
78
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
79
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
80 test:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
81 <<: *default
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
82 compile: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
83
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
84 # Compile test packs to a separate directory
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
85 public_output_path: packs-test
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
86
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
87 production:
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
88 <<: *default
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
89
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
90 # Production depends on precompilation of packs prior to booting for performance.
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
91 compile: false
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
92
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
93 # Extract and emit a css file
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
94 extract_css: true
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
95
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
96 # Cache manifest.json for performance
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
97 cache_manifest: true