Skip to content

Commit

Permalink
Fix the link
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Oct 16, 2023
1 parent e70cb17 commit 7b150a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,16 @@ In production or CI environments, the `digest` strategy is more suitable, unless

You can control what strategy is used by the `compiler_strategy` option in `shakapacker.yml` config file. By default `mtime` strategy is used in development environment, `digest` is used elsewhere.

**Note:** If you are not using the `shakapacker-dev-server`, your packs will be served by the Rails public file server. If you've enabled caching (Rails application `config.action_controller.perform_caching` setting), your changes will likely not be picked up due to `Cache-Control` header being set and assets being cached in the browser memory. For more details see [issue](https://github.com/shakacode/shakapacker/issues/88)[ #88](https://github.com/shakacode/shakapacker/issues/88)](https://github.com/shakacode/shakapacker/issues/88).
**Note:**
If you are not using the `shakapacker-dev-server`,
your packs will be served by the Rails public file server.
If you've enabled caching
(Rails application `config.action_controller.perform_caching` setting),
your changes will likely not be picked up due to `Cache-Control` header being set
and
assets being cached in the browser memory.
For more details see
[issue 88: Caching issues in Development since migrating to Shakapacker](https://github.com/shakacode/shakapacker/issues/88).

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/).

Expand Down

0 comments on commit 7b150a0

Please sign in to comment.