Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for new mix options #182

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
LukeTowers marked this conversation as resolved.
Show resolved Hide resolved

### 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
Loading