diff --git a/console/asset-compilation-mix.md b/console/asset-compilation-mix.md index 2e9daf23..39d49f8b 100644 --- a/console/asset-compilation-mix.md +++ b/console/asset-compilation-mix.md @@ -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' diff --git a/console/asset-compilation-vite.md b/console/asset-compilation-vite.md index d5d701ae..f1528d59 100644 --- a/console/asset-compilation-vite.md +++ b/console/asset-compilation-vite.md @@ -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' @@ -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 [--tailwind] [--vue] +php artisan vite:create [--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.