Skip to content

Commit 03c9f0f

Browse files
authored
chore(docs): add webpacker installation (#15)
1 parent 1d42034 commit 03c9f0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ en:
5353
<%= SnFilterable.load_js %>
5454
```
5555

56+
If your application does not allow for use of `.js.erb` files the JavaScript can be loaded by adding the following to your layout:
57+
```javascript
58+
<%= javascript_tag nonce: true do %>
59+
<%= SnFilterable.load_js.html_safe %>
60+
<% end %>
61+
```
62+
5663
3. Configure your app's Tailwind to scan the gem
5764
```javascript
5865
// tailwind.config.js

0 commit comments

Comments
 (0)