Modify webpack to fix extension watch problemMatcher

pull/285/head
Kelvin Schoofs 3 years ago
parent cca8be2c46
commit 5e5286db90

@ -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: {

Loading…
Cancel
Save