|
1 | | -# Note: You must restart bin/shakapacker-dev-server for changes to take effect |
2 | | - |
3 | | -default: &default |
| 1 | +--- |
| 2 | +default: |
4 | 3 | source_path: client/app |
5 | 4 | source_entry_path: packs |
6 | 5 | public_root_path: public |
7 | | - |
8 | 6 | cache_path: tmp/cache/shakapacker |
9 | 7 | webpack_compile_output: false |
10 | 8 | ensure_consistent_versioning: true |
11 | | - |
12 | | - # Additional paths webpack should lookup modules |
13 | | - # ['app/assets', 'engine/foo/app/assets'] |
14 | | - additional_paths: [] |
15 | | - |
16 | | - # Reload manifest.json on all requests so we reload latest compiled packs |
| 9 | + additional_paths: &1 [] |
17 | 10 | cache_manifest: false |
18 | 11 | nested_entries: true |
19 | | - |
| 12 | + swc: true |
20 | 13 | development: |
21 | | - <<: *default |
22 | | - # Turn this to true if you want to use the rails/shakapacker check that the test |
23 | | - # bundles need building. Also, remove the customization to spec/rails_helper.rb. |
| 14 | + source_path: client/app |
| 15 | + source_entry_path: packs |
| 16 | + public_root_path: public |
| 17 | + cache_path: tmp/cache/shakapacker |
| 18 | + webpack_compile_output: false |
| 19 | + ensure_consistent_versioning: true |
| 20 | + additional_paths: *1 |
| 21 | + cache_manifest: false |
| 22 | + nested_entries: true |
24 | 23 | compile: false |
25 | | - |
26 | 24 | public_output_path: webpack/development |
27 | | - |
28 | | - # Reference: https://webpack.js.org/configuration/dev-server/ |
29 | 25 | dev_server: |
30 | 26 | https: false |
31 | 27 | host: localhost |
32 | 28 | port: 3035 |
33 | | - # Hot Module Replacement updates modules while the application is running without a full reload |
34 | 29 | hmr: true |
35 | | - # Defaults to the inverse of hmr. Uncomment to manually set this. |
36 | | - # live_reload: true |
37 | 30 | client: |
38 | | - # Should we show a full-screen overlay in the browser when there are compiler errors or warnings? |
39 | 31 | overlay: true |
40 | | - # May also be a string |
41 | | - # webSocketURL: |
42 | | - # hostname: "0.0.0.0" |
43 | | - # pathname: "/ws" |
44 | | - # port: 8080 |
45 | | - # Should we use gzip compression? |
46 | 32 | compress: true |
47 | | - # Note that apps that do not check the host are vulnerable to DNS rebinding attacks |
48 | | - allowed_hosts: 'all' |
| 33 | + allowed_hosts: all |
49 | 34 | pretty: true |
50 | 35 | headers: |
51 | | - 'Access-Control-Allow-Origin': '*' |
| 36 | + Access-Control-Allow-Origin: "*" |
52 | 37 | static: |
53 | 38 | watch: |
54 | | - ignored: '**/node_modules/**' |
55 | | - |
| 39 | + ignored: "**/node_modules/**" |
| 40 | + swc: true |
56 | 41 | test: |
57 | | - <<: *default |
| 42 | + source_path: client/app |
| 43 | + source_entry_path: packs |
| 44 | + public_root_path: public |
| 45 | + cache_path: tmp/cache/shakapacker |
| 46 | + webpack_compile_output: false |
| 47 | + ensure_consistent_versioning: true |
| 48 | + additional_paths: *1 |
| 49 | + cache_manifest: false |
| 50 | + nested_entries: true |
58 | 51 | compile: false |
59 | | - |
60 | | - # Compile test packs to a separate directory |
61 | 52 | public_output_path: webpack/test |
62 | | - |
| 53 | + swc: true |
63 | 54 | production: |
64 | | - <<: *default |
65 | | - |
| 55 | + source_path: client/app |
| 56 | + source_entry_path: packs |
| 57 | + public_root_path: public |
| 58 | + cache_path: tmp/cache/shakapacker |
| 59 | + webpack_compile_output: false |
| 60 | + ensure_consistent_versioning: true |
| 61 | + additional_paths: *1 |
| 62 | + cache_manifest: true |
| 63 | + nested_entries: true |
66 | 64 | public_output_path: webpack/production |
67 | | - |
68 | | - # Production depends on precompilation of packs prior to booting for performance. |
69 | 65 | compile: false |
70 | | - |
71 | | - # Cache manifest.json for performance |
72 | | - cache_manifest: true |
| 66 | + swc: true |
0 commit comments