mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix extra s
typo in doc app/javascripts/packs
This commit is contained in:
parent
e581678396
commit
65ab8910db
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue