Skip to content

Commit

Permalink
Updates docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed Nov 18, 2021
1 parent 3899f31 commit 42da9e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,20 @@ underpin()->scripts()->add( 'test', [
] );
```

To enqueue on the login screen:

```php
underpin()->scripts()->add( 'test', [
'handle' => 'test',
'src' => 'path/to/script/src',
'name' => 'test',
'description' => 'The description',
'middlewares' => [
'Underpin_Scripts\Factories\Enqueue_Login_Script'
]
] );
```

To enqueue on both front-end and back-end:

```php
Expand Down

0 comments on commit 42da9e3

Please sign in to comment.