From 6e2e294e3c3238baf121a72b937d24b7b87fcebb Mon Sep 17 00:00:00 2001 From: Tom Busby <16073340+Nimdoc@users.noreply.github.com> Date: Thu, 4 Apr 2024 07:47:51 +0200 Subject: [PATCH] Add documentation for new mix options (#182) Co-authored-by: Luke Towers Documents https://github.com/wintercms/docs/pull/182/commits/ea6f059c09150be72289e8c269371369d0da3c78 --- console/asset-compilation.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/console/asset-compilation.md b/console/asset-compilation.md index 7cf96edd..21f9ebbb 100644 --- a/console/asset-compilation.md +++ b/console/asset-compilation.md @@ -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 @@ -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.