fix(webpack): set log level to warn for HardSourcePlugin (#5653)

This commit is contained in:
Pooya Parsa 2019-05-06 15:17:37 +04:30 committed by GitHub
parent 5ebf1cc78c
commit ffadb3177f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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