Skip to content

Commit 9cc99df

Browse files
authored
Update asset-compilation-vite.md
1 parent 19596a6 commit 9cc99df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

console/asset-compilation-vite.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ CompilableAssets::instance()->registerPackage(
6666

6767
## Automatic Vite configuration
6868

69-
The command `vite:config` will allow you to automatically generate a basic Vite config which you can then build on top of.
69+
The command `vite:create` will allow you to automatically generate a basic Vite config which you can then build on top of.
7070

7171
```bash
72-
php artisan vite:config <package name> [--tailwind] [--vue] [--stubs]
72+
php artisan vite:config <package name> [--tailwind] [--vue]
7373
```
7474

75-
By default, the `vite:config` 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, you can provide any of the following flags.
75+
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.
7676

7777
- `--tailwind` will configure your package for [tailwindcss](https://tailwindcss.com/)
7878
- `--vue` will configure your package for [vue.js](https://vuejs.org/)
7979

8080
For example, the following with configure the plugin `Acme.Example` with tailwind and create `plugins/acme/example/assets/src/acme-example.css` with a tailwind setup.
8181

8282
```bash
83-
php artisan vite:config acme.example --tailwind
83+
php artisan vite:create acme.example --tailwind
8484
```
8585

8686
> **NOTE:** Winter will automatically pre-populate CSS/JS files with a basic setup of your chosen libraries. If you wish to only have the base configuration files generated then use the `--no-stubs` option.

0 commit comments

Comments
 (0)