Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Jul 23, 2024
1 parent 8bce586 commit b187427
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions console/asset-compilation-mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ mix:
You can configure a custom mix package that sits outside of plugins and themes.

```php
use System\Classes\CompilableAssets;
use System\Classes\Asset\PackageManager;
CompilableAssets::instance()->registerPackage(
PackageManager::instance()->registerPackage(
name: 'my-custom-package',
path: '/path/to/winter.mix.js',
type: 'mix'
Expand Down
6 changes: 3 additions & 3 deletions console/asset-compilation-vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ vite:
You can configure a custom vite package that sits outside of plugins and themes.

```php
use System\Classes\CompilableAssets;
use System\Classes\Asset\PackageManager;
CompilableAssets::instance()->registerPackage(
PackageManager::instance()->registerPackage(
name: 'my-custom-package',
path: '/path/to/vite.config.mjs',
type: 'vite'
Expand All @@ -69,7 +69,7 @@ CompilableAssets::instance()->registerPackage(
The command `vite:create` will allow you to automatically generate a basic Vite config which you can then build on top of.

```bash
php artisan vite:config <package name> [--tailwind] [--vue]
php artisan vite:create <package name> [--tailwind] [--vue]
```

By default, the `vite:create` command will only generate the basic `vite.config.mjs` config file. If you would like Winter to pre-configure your package for a certain library / asset bundle, you can provide any of the following flags.
Expand Down

0 comments on commit b187427

Please sign in to comment.