Skip to content

Commit

Permalink
Add documentation for new mix options (#182)
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Towers <[email protected]>

Documents ea6f059
  • Loading branch information
Nimdoc authored Apr 4, 2024
1 parent 4e41f56 commit 6e2e294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion console/asset-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,15 @@ Please see the `mix:install` documentation for the available arguments and optio
### List registered Mix packages

```bash
php artisan mix:list
php artisan mix:list [--json]
```

The `mix:list` command will list all registered Mix packages found in the Winter installation. This is useful for determining if your plugin or theme is correctly registered.

The command will list all packages, as well as the directory for the asset and the configuration file that has been defined during registration.

A json formatted list of packages can be printed by specifying the `--json` flag.

### Compile a Mix packages

```bash
Expand All @@ -285,6 +287,8 @@ The `mix:compile` command compiles all registered Mix packages, running each pac

By specifying the `-p` flag, you can compile one or more selected packages. To define multiple packages, simply add more `-p` flags to the end of the command.

The `--no-progress` flag can be added in order to suppress the mix progress output. Useful if you want to only view the webpack output.

By default, all packages are built in "development" mode. If you wish to compile in "production" mode, which may include more optimisations for production sites, add the `-f` or `--production` flag to the command.

The command will generate a report of all compiled files and their final size once complete.
Expand Down

0 comments on commit 6e2e294

Please sign in to comment.