From d14142c7f9104922117e6e422bff03f86c5b8ea6 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Thu, 11 Jan 2024 12:36:13 +0100 Subject: [PATCH] update docs --- docs/introduction.md | 2 +- docs/production-builds.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/introduction.md b/docs/introduction.md index 0d71880..f5aacb1 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -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)._
diff --git a/docs/production-builds.md b/docs/production-builds.md index e674c50..18f109a 100644 --- a/docs/production-builds.md +++ b/docs/production-builds.md @@ -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') +] +``` +
{: .note }