Fixed webpack skin folder globbing

lolsob-rspec
kibigo! 2017-12-07 14:33:49 -08:00
parent f9387aabaa
commit e614dc144e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ for (let i = 0; i < skinFiles.length; i++) {
const data = flavours[name].skin; const data = flavours[name].skin;
if (lstatSync(skinFile).isDirectory()) { if (lstatSync(skinFile).isDirectory()) {
data[skin] = {}; data[skin] = {};
const skinPacks = glob.sync(skinFile, '*.{css,scss}'); const skinPacks = glob.sync(resolve(skinFile, '*.{css,scss}'));
for (let j = 0; j < skinPacks.length; j++) { for (let j = 0; j < skinPacks.length; j++) {
const pack = skinPacks[i]; const pack = skinPacks[i];
data[skin][basename(pack, extname(pack))] = pack; data[skin][basename(pack, extname(pack))] = pack;