From a4ed179c0087a3a3873f9674b6f4df3079bff4ee Mon Sep 17 00:00:00 2001 From: FuPeiJiang <42662615+FuPeiJiang@users.noreply.github.com> Date: Sun, 7 Feb 2021 22:45:30 -0500 Subject: [PATCH] [webpack-cli] Compilation finished, infrastructureLogging: { level: 'log' } https://github.com/microsoft/vscode-generator-code/issues/239#issuecomment-774710420 --- build/node-extension.webpack.config.js | 3 +++ package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build/node-extension.webpack.config.js b/build/node-extension.webpack.config.js index d1779f0..764552b 100644 --- a/build/node-extension.webpack.config.js +++ b/build/node-extension.webpack.config.js @@ -7,6 +7,9 @@ const ForkTsCheckerPlugin = require('fork-ts-checker-webpack-plugin') /**@type {import('webpack').Configuration}*/ const config = { + infrastructureLogging: { + level: 'log', + }, target: 'node', // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/ mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') diff --git a/package.json b/package.json index 3925d91..5e3329f 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "scripts": { "vscode:prepublish": "yarn run package", "compile": "webpack --config ./build/node-extension.webpack.config.js", - "watch": "webpack --watch --info-verbosity verbose --config ./build/node-extension.webpack.config.js", + "watch": "webpack --mode development --watch --config ./build/node-extension.webpack.config.js", "package": "webpack --mode production --devtool hidden-source-map --config ./build/node-extension.webpack.config.js", "test-compile": "tsc -p ./", "test-watch": "tsc -watch -p ./", @@ -73,7 +73,7 @@ "ts-loader": "^8.0.14", "typescript": "^4.1.3", "vscode-test": "^1.5.0", - "webpack": "^5.20.1", + "webpack": "^5.21.1", "webpack-cli": "^4.5.0" } }