Skip to content

Commit

Permalink
chore(docs): add webpacker installation (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
chasemcdo authored Jan 6, 2023
1 parent 1d42034 commit 03c9f0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ en:
<%= SnFilterable.load_js %>
```

If your application does not allow for use of `.js.erb` files the JavaScript can be loaded by adding the following to your layout:
```javascript
<%= javascript_tag nonce: true do %>
<%= SnFilterable.load_js.html_safe %>
<% end %>
```

3. Configure your app's Tailwind to scan the gem
```javascript
// tailwind.config.js
Expand Down

0 comments on commit 03c9f0f

Please sign in to comment.