File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { Utils } from "nuxt";
7
7
import webpack from "webpack" ;
8
8
import HTMLPlugin from "html-webpack-plugin" ;
9
9
import ExtractTextPlugin from "extract-text-webpack-plugin" ;
10
+ import FriendlyErrorsWebpackPlugin from "friendly-errors-webpack-plugin" ;
10
11
11
12
export default function webpackNetlifyCmsConfig (
12
13
name ,
@@ -67,9 +68,14 @@ export default function webpackNetlifyCmsConfig(
67
68
} ;
68
69
69
70
// --------------------------------------
70
- // Production specific config
71
+ // Development specific config
71
72
// --------------------------------------
72
- if ( ! nuxtOptions . dev ) {
73
+ if ( nuxtOptions . dev ) {
74
+ config . plugins . push ( new FriendlyErrorsWebpackPlugin ( ) ) ;
75
+ } else {
76
+ // --------------------------------------
77
+ // Production specific config
78
+ // --------------------------------------
73
79
// CSS extraction
74
80
config . plugins . push (
75
81
new ExtractTextPlugin ( {
You can’t perform that action at this time.
0 commit comments