From 65ab8910dbd600f9a90dce18ea056de9f5f37169 Mon Sep 17 00:00:00 2001 From: Guillaume Wrobel <20317297+GuillaumeWrobel@users.noreply.github.com> Date: Tue, 15 Jun 2021 07:22:59 +0200 Subject: [PATCH] Fix extra `s` typo in doc `app/javascripts/packs` --- guides/source/webpacker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/webpacker.md b/guides/source/webpacker.md index dbd0234bcd..57a9ad1ef4 100644 --- a/guides/source/webpacker.md +++ b/guides/source/webpacker.md @@ -91,7 +91,7 @@ Usage ### Using Webpacker for JavaScript -With Webpacker installed, any JavaScript file in the `app/javascripts/packs` directory will get compiled to its own pack file by default. +With Webpacker installed, any JavaScript file in the `app/javascript/packs` directory will get compiled to its own pack file by default. So if you have a file called `app/javascript/packs/application.js`, Webpacker will create a pack called `application`, and you can add it to your Rails application with the code `<%= javascript_pack_tag "application" %>`. With that in place, in development, Rails will recompile the `application.js` file every time it changes, and you load a page that uses that pack. Typically, the file in the actual `packs` directory will be a manifest that mostly loads other files, but it can also have arbitrary JavaScript code.