From 15c7a6d493f25145ac89599c5aee9cb1f692599b Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Fri, 24 Nov 2023 21:58:29 +0330 Subject: [PATCH] Revert "Update documentation" This reverts commit 272b36a7beff2a30cc32ac2cd4d8072fe2cc9f33. --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 3e6888f93..7fba493b4 100644 --- a/README.md +++ b/README.md @@ -447,12 +447,7 @@ For more details see If you want to use live code reloading, or you have enough JavaScript that on-demand compilation is too slow, you'll need to run `./bin/shakapacker-dev-server`. This process will watch for changes in the relevant files, defined by `shakapacker.yml` configuration settings for `source_path`, `source_entry_path`, and `additional_paths`, and it will then automatically reload the browser to match. This feature is also known as [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/). -**Note:** -In digest strategy, -if you set a custom asset host either through -`Rails.application.config.asset_host` or `SHAKAPACKER_ASSET_HOST` environment variable, -a hash gets added to the asset path. -This feature causes recompilation of assets by changing the asset host. +**Note:** If you want to enforce recompilation on asset host change (for example, through `SHAKAPACKER_ASSET_HOST` environment variable), in addition to using digest strategy, you should set `compiler_strategy_asset_host_sensitive: true` in `config/shakapacker.yml`. #### Common Development Commands