From cb817c50186c8bb3a35dce0ec6dbb94ef83a9cfc Mon Sep 17 00:00:00 2001 From: Tom Busby Date: Sun, 24 Mar 2024 16:18:52 +0100 Subject: [PATCH 1/2] Add documentation for new mix options --- 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..8e05cc0e 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. From ea6f059c09150be72289e8c269371369d0da3c78 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 3 Apr 2024 23:47:03 -0600 Subject: [PATCH 2/2] Update console/asset-compilation.md --- console/asset-compilation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/asset-compilation.md b/console/asset-compilation.md index 8e05cc0e..21f9ebbb 100644 --- a/console/asset-compilation.md +++ b/console/asset-compilation.md @@ -275,7 +275,7 @@ The `mix:list` command will list all registered Mix packages found in the Winter 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, +A json formatted list of packages can be printed by specifying the `--json` flag. ### Compile a Mix packages