Skip to content

Commit

Permalink
Merge pull request #11087 from niedzielski/8461-hmr-quiet
Browse files Browse the repository at this point in the history
CLI: Pass --quiet to disable HMR logging in browser console
  • Loading branch information
ndelangen committed Jun 10, 2020
2 parents 6aaa9d4 + a3956f0 commit 4b18fb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/core/src/server/preview/preview-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ export const entries = async (_, options) => {
result = result.concat(await createPreviewEntry(options));

if (options.configType === 'DEVELOPMENT') {
// Suppress informational messages when --quiet is specified. webpack-hot-middleware's quiet
// parameter would also suppress warnings.
result = result.concat(
`${require.resolve('webpack-hot-middleware/client')}?reload=true&quiet=false`
`${require.resolve('webpack-hot-middleware/client')}?reload=true&quiet=false&noInfo=${
options.quiet
}`
);
}

Expand Down

0 comments on commit 4b18fb6

Please sign in to comment.