How to silence webpack HMR console output
Asked Answered
K

0

8

I have a simple webpack setup with HotModuleReplacementPlugin() added. I run webpack via it's NodeJS API.

compiler.watch(
    { stats: 'errors-only' },
    () => { console.log('Webpack is watching files.');
});

By specifying the stats option I am able to disable all webpack build outputs. But the HMR plugin outputs are still visible on the console like so:

[HMR] Updated modules:

[HMR] - ./server/src/server.js

[HMR] Update applied.

Is there any way to disable this output as well?

Kurus answered 15/3, 2018 at 16:51 Comment(1)
Maybe helps: webpack devserverclientloglevel, Stats, react-hot-loader issue 79Phlyctena

© 2022 - 2024 — McMap. All rights reserved.