11# Note: You must restart bin/shakapacker-dev-server for changes to take effect
2- # This file contains the defaults used by shakapacker.
32
43default : &default
5- source_path : app/javascript
6-
7- # You can have a subdirectory of the source_path, like 'packs' (recommended).
8- # Alternatively, you can use '/' to use the whole source_path directory.
9- # Notice that this is a relative path to source_path
4+ source_path : client/app
105 source_entry_path : packs
11-
12- # If nested_entries is true, then we'll pick up subdirectories within the source_entry_path.
13- # You cannot set this option to true if you set source_entry_path to '/'
14- nested_entries : true
15-
16- # While using a File-System-based automated bundle generation feature, miscellaneous warnings suggesting css order
17- # conflicts may arise due to the mini-css-extract-plugin. For projects where css ordering has been mitigated through
18- # consistent use of scoping or naming conventions, the css order warnings can be disabled by setting
19- # css_extract_ignore_order_warnings to true
20- css_extract_ignore_order_warnings : false
21-
226 public_root_path : public
237 public_output_path : packs
248 cache_path : tmp/shakapacker
259 webpack_compile_output : true
26- # See https://github.com/shakacode/shakapacker#deployment
27- shakapacker_precompile : true
2810
29- # Location for manifest.json, defaults to {public_output_path}/manifest.json if unset
30- # manifest_path: public/packs/manifest.json
31-
32- # Additional paths webpack should look up modules
11+ # Additional paths webpack should lookup modules
3312 # ['app/assets', 'engine/foo/app/assets']
3413 additional_paths : []
3514
3615 # Reload manifest.json on all requests so we reload latest compiled packs
3716 cache_manifest : false
38-
39- # Select loader to use, available options are 'babel' (default), 'swc' or 'esbuild'
40- webpack_loader : ' babel'
41-
42- # Raises an error if there is a mismatch in the shakapacker gem and npm package being used
43- ensure_consistent_versioning : true
44-
45- # Select whether the compiler will use SHA digest ('digest' option) or most recent modified timestamp ('mtime') to determine freshness
46- compiler_strategy : digest
47-
48- # Select whether the compiler will always use a content hash and not just in production
49- # Don't use contentHash except for production for performance
50- # https://webpack.js.org/guides/build-performance/#avoid-production-specific-tooling
51- useContentHash : false
52-
53- # Setting the asset host here will override Rails.application.config.asset_host.
54- # Here, you can set different asset_host per environment. Note that
55- # SHAKAPACKER_ASSET_HOST will override both configurations.
56- # asset_host: custom-path
57-
58- # Utilizing webpack-subresource-integrity plugin, will generate integrity hashes for all entries in manifest.json
59- # https://github.com/waysact/webpack-subresource-integrity/tree/main/webpack-subresource-integrity
60- integrity :
61- enabled : false
62- # Which cryptographic function(s) to use, for generating the integrity hash(es). Default sha-384. Other possible values sha256, sha512
63- hash_functions : ["sha384"]
64- # Default "anonymous". Other possible value "use-credentials"
65- # https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity#cross-origin_resource_sharing_and_subresource_integrity
66- cross_origin : " anonymous"
17+
18+ # Use the config.build_production_command in config/initializers/react_on_rails.rb
19+ shakapacker_precompile : false
6720
6821development :
6922 << : *default
70- compile : true
71- compiler_strategy : mtime
23+ # This is false since we're running `bin/shakapacker -w` in Procfile.dev-setic
24+ compile : false
7225
7326 # Reference: https://webpack.js.org/configuration/dev-server/
74- # Keys not described there are documented inline and in https://github.com/shakacode/shakapacker/
7527 dev_server :
76- # For running dev server with https, set `server: https`.
77- # server: https
78-
28+ https : false
7929 host : localhost
8030 port : 3035
8131 # Hot Module Replacement updates modules while the application is running without a full reload
82- # Used instead of the `hot` key in https://webpack.js.org/configuration/dev-server/#devserverhot
8332 hmr : true
84- # If HMR is on, CSS will be inlined by delivering it as part of the script payload via style-loader. Be sure
85- # that you add style-loader to your project dependencies.
86- #
87- # If you want to instead deliver CSS via <link> with the mini-css-extract-plugin, set inline_css to false.
88- # In that case, style-loader is not needed as a dependency.
89- #
90- # mini-css-extract-plugin is a required dependency in both cases.
91- inline_css : true
92- # Defaults to the inverse of hmr. Uncomment to manually set this.
93- # live_reload: true
9433 client :
9534 # Should we show a full-screen overlay in the browser when there are compiler errors or warnings?
9635 overlay : true
9736 # May also be a string
9837 # webSocketURL:
99- # hostname: ' 0.0.0.0'
100- # pathname: ' /ws'
38+ # hostname: " 0.0.0.0"
39+ # pathname: " /ws"
10140 # port: 8080
102- # Should we use gzip compression?
10341 compress : true
10442 # Note that apps that do not check the host are vulnerable to DNS rebinding attacks
105- allowed_hosts : ' auto'
106- # Shows progress and colorizes output of bin/shakapacker[-dev-server]
43+ allowed_hosts : [ 'localhost' ]
10744 pretty : true
10845 headers :
10946 ' Access-Control-Allow-Origin ' : ' *'
@@ -115,17 +52,11 @@ test:
11552 << : *default
11653 compile : true
11754
118- # Compile test packs to a separate directory
119- public_output_path : packs-test
120-
12155production :
12256 << : *default
12357
12458 # Production depends on precompilation of packs prior to booting for performance.
12559 compile : false
12660
127- # Use content hash for naming assets. Cannot be overridden in production.
128- useContentHash : true
129-
13061 # Cache manifest.json for performance
13162 cache_manifest : true
0 commit comments