diff --git a/webpack.config.js b/webpack.config.js index f519e5c..1de717d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,6 +44,20 @@ class CopyPuttyExecutable { } } +class ProblemMatcherReporter { + /** + * @param {webpack.Compiler} compiler + */ + apply(compiler) { + compiler.hooks.beforeCompile.tap('ProblemMatcherReporter-BeforeCompile', () => { + console.log('Compilation starting'); + }); + compiler.hooks.afterCompile.tap('ProblemMatcherReporter-AfterCompile', () => { + console.log('Compilation finished'); + }); + } +} + /**@type {webpack.Configuration}*/ const config = { mode: 'development', @@ -80,6 +94,7 @@ const config = { plugins: [ new CleanWebpackPlugin(), new CopyPuttyExecutable(), + new ProblemMatcherReporter(), ], optimization: { splitChunks: {