File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,20 @@ export default function webpackNetlifyCmsConfig(
103
103
config . plugins . push (
104
104
new webpack . HotModuleReplacementPlugin ( ) ,
105
105
new webpack . NoEmitOnErrorsPlugin ( ) ,
106
- // Add friendly error plugin
107
- new FriendlyErrorsWebpackPlugin ( ) ,
108
106
// https://webpack.js.org/plugins/named-modules-plugin
109
107
new webpack . NamedModulesPlugin ( )
110
108
) ;
109
+
110
+ // Add friendly error plugin
111
+ if ( ! nuxtOptions . build . quiet && nuxtOptions . build . friendlyErrors ) {
112
+ config . plugins . push (
113
+ new FriendlyErrorsWebpackPlugin ( {
114
+ clearConsole : false ,
115
+ reporter : "consola" ,
116
+ logLevel : "WARNING"
117
+ } )
118
+ ) ;
119
+ }
111
120
} else {
112
121
// --------------------------------------
113
122
// Production specific config
You can’t perform that action at this time.
0 commit comments