Reputation: 2613
I am working on a play scala project that uses webpack and react. I did copy my webpack.config.js used for development and renamed it to webpack.prod.config.js. Using this new file, I want to be able to turn off the console.log and warnings. I used:
plugins: [
new ExtractTextPlugin("styles.css"),
new webpack.NormalModuleReplacementPlugin(/debug/, process.cwd() + './emptyDebug.js')
],
performance: {
hints: false
}
but I can still see those messages. Any solutions?
Thx
Upvotes: 0
Views: 5094
Reputation: 6987
You could set the stats
option to 'none'
:
stats: 'none'
Or you could use webpack-dev-middleware and set noInfo to true
. If you're using webpack-dev-server you can set noInfo
to true
in the config:
devServer: {
noInfo: true
}
Upvotes: 4