diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index 445bdd507a..f21ca23e44 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -409,7 +409,13 @@ export default class WebpackBaseConfig { })) if (buildOptions.hardSource) { - plugins.push(new HardSourcePlugin(Object.assign({}, buildOptions.hardSource))) + // https://github.com/mzgoddard/hard-source-webpack-plugin + plugins.push(new HardSourcePlugin({ + info: { + level: 'warn' + }, + ...buildOptions.hardSource + })) } return plugins