We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
file
srcDir
1 parent c3889ff commit c189b0fCopy full SHA for c189b0f
src/configManager.js
@@ -75,11 +75,25 @@ class ConfigManager {
75
76
if (configObject.collections) {
77
configObject.collections.forEach(function(collection) {
78
- collection.folder &&
+ if (collection.folder) {
79
newConfig.collections.push({
80
...collection,
81
folder: join(enforcedPath, collection.folder)
82
});
83
+ } else if (collection.files) {
84
+ const collectionFiles = [];
85
+ collection.files.forEach(function(fileEntry) {
86
+ fileEntry.file &&
87
+ collectionFiles.push({
88
+ ...fileEntry,
89
+ file: join(enforcedPath, fileEntry.file)
90
+ });
91
92
+ newConfig.collections.push({
93
+ ...collection,
94
+ files: collectionFiles
95
96
+ }
97
98
}
99
0 commit comments