From c4c5b5e9b72c8574530d9112f3535929291f9601 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 24 Oct 2020 01:37:24 -0400 Subject: [PATCH] Fixes webpack dist clean-up Tidies webpack cli output --- webpack.config.js | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 133758f..e6de764 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -139,6 +139,7 @@ function getExtensionConfig(mode, env) { }, devtool: 'source-map', output: { + path: path.join(__dirname, 'dist'), libraryTarget: 'commonjs2', filename: 'gitlens.js', chunkFilename: 'feature-[name].js', @@ -188,15 +189,15 @@ function getExtensionConfig(mode, env) { symlinks: false, }, plugins: plugins, - // stats: { - // all: false, - // assets: true, - // builtAt: true, - // env: true, - // errors: true, - // timings: true, - // warnings: true, - // }, + stats: { + preset: 'errors-warnings', + assets: true, + colors: true, + env: true, + errorsCount: true, + warningsCount: true, + timings: true, + }, }; } @@ -412,14 +413,14 @@ function getWebviewsConfig(mode, env) { symlinks: false, }, plugins: plugins, - // stats: { - // all: false, - // assets: true, - // builtAt: true, - // env: true, - // errors: true, - // timings: true, - // warnings: true, - // }, + stats: { + preset: 'errors-warnings', + assets: true, + colors: true, + env: true, + errorsCount: true, + warningsCount: true, + timings: true, + }, }; }