Skip to content

Commit 42da9e3

Browse files
Updates docs
1 parent 3899f31 commit 42da9e3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,20 @@ underpin()->scripts()->add( 'test', [
159159
] );
160160
```
161161

162+
To enqueue on the login screen:
163+
164+
```php
165+
underpin()->scripts()->add( 'test', [
166+
'handle' => 'test',
167+
'src' => 'path/to/script/src',
168+
'name' => 'test',
169+
'description' => 'The description',
170+
'middlewares' => [
171+
'Underpin_Scripts\Factories\Enqueue_Login_Script'
172+
]
173+
] );
174+
```
175+
162176
To enqueue on both front-end and back-end:
163177

164178
```php

0 commit comments

Comments
 (0)