Skip to content

Commit 5d6f64e

Browse files
authored
#70 Don't clearConsole on build (#73)
* Close #70. Don't clearConsole on build * Update webpack.config.js
1 parent c02822b commit 5d6f64e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/backpack-core/config/webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ module.exports = (options) => {
126126
}),
127127
// The FriendlyErrorsWebpackPlugin (when combined with source-maps)
128128
// gives Backpack its human-readable error messages.
129-
new FriendlyErrorsWebpackPlugin(),
129+
new FriendlyErrorsWebpackPlugin({
130+
clearConsole: options.env === 'development',
131+
}),
130132
// The NoEmitOnErrorsPlugin plugin prevents Webpack
131133
// from printing out compile time stats to the console.
132134
new webpack.NoEmitOnErrorsPlugin()

0 commit comments

Comments
 (0)