Skip to content

Commit 7ca338c

Browse files
committed
docs: updated examples
1 parent 9a2b0c1 commit 7ca338c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ composer require designcise/manifest-json
2020
```php
2121
use Designcise\ManifestJson\ManifestJson;
2222

23-
$manifest = new ManifestJson('path/to/manifest/');
23+
$manifest = new ManifestJson('path/to/manifest/'); // defaults to `manifest.json`
24+
// or $manifest = new ManifestJson('path/to/manifest/my-manifest.json');
2425

2526
$entry = $manifest->get('entry.js');
2627
$metadata = $manifest->getAll();
@@ -34,7 +35,7 @@ $criticalJs = $manifest->getAllByKeyBasename('critical-*.js');
3435

3536
### `static from(string $dirOrFile): self`
3637

37-
Static method to load `manifest.json` file (default) from specified directory; for example:
38+
Static method to load `manifest.json` file from specified directory. If only directory is specified then it is assumed that file name is `manifest.json` by default, otherwise the specified name is used. For example:
3839

3940
```php
4041
ManifestJson::from('path/to/manifest/'); // defaults to `manifest.json`

0 commit comments

Comments
 (0)