Skip to content

Commit

Permalink
Merge branch 'main' into fix/css-import-regression
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink authored Oct 24, 2024
2 parents ce149b9 + 3921b0c commit 1a6d4a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 3 additions & 5 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ There are a couple of commands at your disposal:

`artisan bundle:build` Scan all your build_paths configured in `config/bundle.php` & compile all your imports.

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 paths.
You can 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 paths.

```php
'build_paths' => [
Expand All @@ -184,12 +184,10 @@ You may configure what paths are scanned by publishing the Bundle config file an

## Testing fake

When writing Unit or Feature tests in your application you don't need Bundle to process & serve your imports.

Simply use the BundleManager fake in your test setup. Perfect for when you're asserting on responses with feature tests.
When writing Unit or Feature tests in your application you don't need Bundle to process & serve your imports. You may use the BundleManager fake in your test setup. When testing responses your imports won't be bundled.

```php
BundleManager::fake();
```

When you'd like to use Dusk for browser testing you need to run Bundle in order for your tests not to blow up. Simply don't fake the BundleManager in your DuskTestCase.
If you'd like to use Dusk for browser testing you probably need do to run Bundle. You can assert on any script that depends on a Bundle import. In fact, that's how most of Bundle itself is tested internally.
2 changes: 1 addition & 1 deletion docs/css-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ This works similarly to [local modules](https://laravel-bundle.dev/local-modules
{
"compilerOptions": {
"paths": {
"~/css": ["./resources/css/*"]
"~/css/*": ["./resources/css/*"]
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class ServiceProvider extends BaseServiceProvider
{
public function boot(): void
{
$this->mergeConfigFrom(__DIR__ . '/../config/bundle.php', 'bundle');

// Only when using locally
if (! $this->app->environment(['local', 'testing'])) {

Expand Down

0 comments on commit 1a6d4a9

Please sign in to comment.