Skip to content

Commit

Permalink
feat: allow wildcards in files association (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirgrf committed Jun 12, 2023
1 parent bcd0358 commit fe326f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/theme-json-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ const updateThemeJSONHandlers = {
},
"files.associations": (themeJSON, files) => {
for (const file in files) {
themeJSON.fileNames[file] = files[file];
if(file.startsWith('*.')){
const newExtension = file.replace('*.','');
themeJSON.fileExtensions[newExtension] = files[file];
} else {
themeJSON.fileNames[file] = files[file];
}
}
},
};
Expand Down

0 comments on commit fe326f8

Please sign in to comment.