From e2cd8387d95c40cc36003461c1b03c80d342cce6 Mon Sep 17 00:00:00 2001 From: martinnaughton Date: Fri, 12 Apr 2019 13:17:31 +0100 Subject: [PATCH 1/2] Update webpack.md Adding description that vue inspect defaults to development and how to see the production config details and rules. --- docs/guide/webpack.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/guide/webpack.md b/docs/guide/webpack.md index b59f123bca..48124811e4 100644 --- a/docs/guide/webpack.md +++ b/docs/guide/webpack.md @@ -156,6 +156,11 @@ You can redirect the output into a file for easier inspection: ``` bash vue inspect > output.js ``` +By default inspect will out put the development config. To see the production configuration + +``` bash +vue inspect --mode production > output.prod.js +``` Note the output is not a valid webpack config file, it's a serialized format only meant for inspection. From 9346493ddc438bf2436dd8916aae3daaa4608170 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 28 Sep 2020 16:10:21 +0800 Subject: [PATCH 2/2] Update docs/guide/webpack.md Co-authored-by: Natalia Tepluhina --- docs/guide/webpack.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/webpack.md b/docs/guide/webpack.md index 48124811e4..800ad342e5 100644 --- a/docs/guide/webpack.md +++ b/docs/guide/webpack.md @@ -156,7 +156,7 @@ You can redirect the output into a file for easier inspection: ``` bash vue inspect > output.js ``` -By default inspect will out put the development config. To see the production configuration +By default, `inspect` command will show the output for development config. To see the production configuration, you need to run ``` bash vue inspect --mode production > output.prod.js