Skip to content

Commit

Permalink
Add clearConsole option for friendly errors output
Browse files Browse the repository at this point in the history
  • Loading branch information
valorin authored and JeffreyWay committed Mar 22, 2017
1 parent f5ebd5a commit 6400bb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup/webpack.config.js
Expand Up @@ -302,7 +302,7 @@ plugins.push(
jquery: 'jquery'
}),

new webpackPlugins.FriendlyErrorsWebpackPlugin(),
new webpackPlugins.FriendlyErrorsWebpackPlugin({ clearConsole: Mix.options.clearConsole }),

new webpackPlugins.StatsWriterPlugin({
filename: 'mix-manifest.json',
Expand Down
11 changes: 11 additions & 0 deletions src/Options.js
Expand Up @@ -129,6 +129,17 @@ module.exports = {
],


/**
* Determine if Mix should ask the friendly errors plugin to
* clear the console before outputting the results or not.
*
* https://github.com/geowarin/friendly-errors-webpack-plugin#options
*
* @type {Boolean}
*/
clearConsole: true,


/**
* Merge the given options with the current defaults.
*
Expand Down

0 comments on commit 6400bb0

Please sign in to comment.