File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,6 @@ class ConfigManager {
46
46
this . _config = options ;
47
47
}
48
48
49
- get cmsConfigFile ( ) {
50
- return this . _cmsConfigFile ;
51
- }
52
-
53
49
get config ( ) {
54
50
return this . _config ;
55
51
}
@@ -66,6 +62,14 @@ class ConfigManager {
66
62
return config ;
67
63
}
68
64
65
+ get cmsConfigFileName ( ) {
66
+ return this . _cmsConfigFile . fileName ;
67
+ }
68
+
69
+ readCmsConfigFile ( ) {
70
+ return this . _cmsConfigFile . readFile ( ) ;
71
+ }
72
+
69
73
static setConfigPaths ( configObject , enforcedPath ) {
70
74
const newConfig = {
71
75
collections : [ ]
Original file line number Diff line number Diff line change @@ -132,15 +132,15 @@ export default function NetlifyCmsModule(moduleOptions) {
132
132
} ) ;
133
133
134
134
// Start watching config file
135
- const patterns = [ Utils . r ( configManager . cmsConfigFile . fileName ) ] ;
135
+ const patterns = [ Utils . r ( configManager . cmsConfigFileName ) ] ;
136
136
137
137
const options = {
138
138
...this . options . watchers . chokidar ,
139
139
ignoreInitial : true
140
140
} ;
141
141
142
142
const refreshFiles = _ . debounce ( ( ) => {
143
- configManager . cmsConfigFile . readFile ( ) ;
143
+ configManager . readCmsConfigFile ( ) ;
144
144
this . nuxt . renderer . netlifyWebpackDevMiddleware . invalidate ( ) ;
145
145
this . nuxt . renderer . netlifyWebpackHotMiddleware . publish ( {
146
146
action : "reload"
You can’t perform that action at this time.
0 commit comments