Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Feb 5, 2024
1 parent 9554491 commit aefdfbd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You should apply this with consideration. You will save up on requests, but doin

## Per method exports

Because there is no way to analyze the JS codepaths on your page, Bundle cannot treeshake unused exports.
Because there is no way to analyze the JS codepaths on your page, Bundle cannot treeshake unused exports.
You should always account for this and only import modules your really need to minimize any unused code loaded via `x-import`.

If a module supports per method exports, like `lodash` does, it is recomended to import the single method instead of the whole module & only retrieving the desired export later.
Expand Down Expand Up @@ -121,9 +121,9 @@ Content-Type: application/javascript; charset=utf-8

There are a couple of commands at your disposal:

### `artisan bundle:build`
### bundle:build

Scan all your build_paths configured in `config/bundle.php` & compile all your imports.
`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.

Expand All @@ -133,9 +133,9 @@ You may configure what paths are scanned by publishing the Bundle config file an
]
```

### `artisan bundle:clear`
### bundle:clear

Clear all bundled scripts.
`artisan bundle:clear` Clear all bundled scripts.

## Testing fake

Expand Down

0 comments on commit aefdfbd

Please sign in to comment.