Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 11, 2024
1 parent cb767d3 commit d14142c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If the module you're exporting uses named exports, you may resolve it like this:
var module = await _bundle("lodash", "filter"); // Resolves a named export 'filter'
```

**_In cases like this it might be advantagious to use per-method imports instead. Please refer to the [advanced usage example](/bundle/advanced-usage.html#per-method-exports)._**
_In cases like this it might be advantagious to use per-method imports instead. Please refer to the [advanced usage example](/bundle/advanced-usage.html#per-method-exports)._

<br />

Expand Down
8 changes: 8 additions & 0 deletions docs/production-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Eventhough Bun is very fast, since Bundle transpiles & bundles your imports on t

You may run `php artisan bundle:build` to bundle all your imports beforehand. These will be added to your `storage/app/bundle` directory, make sure to add those to vsc or otherwise build them in CI before deployment.

You may configure what paths are scanned by publishing the Bundle config file and updating the `build_paths` array. Note this config option accepts an array of glob patterns.

```php
'build_paths' => [
resource_path('views/**/*.blade.php')
]
```

<br />
{: .note }

Expand Down

0 comments on commit d14142c

Please sign in to comment.