diff options
author | cwm <chriswmartin@protonmail.com> | 2017-12-10 15:22:15 -0600 |
---|---|---|
committer | cwm <chriswmartin@protonmail.com> | 2017-12-10 15:22:15 -0600 |
commit | 072ab191cc47692bad1145a26aa27912aeefb12f (patch) | |
tree | d217dc63f36554c7271b1c68a90d8d044640a732 /config/webpack/configuration.js | |
parent | eec5d350fdb94fa44c6938ca059166ff3e3e67b3 (diff) | |
parent | 26c9b9fa276fd629789fd06f65a5d698b182f67a (diff) |
pulled master, moved locale entry to new location
Diffstat (limited to 'config/webpack/configuration.js')
-rw-r--r-- | config/webpack/configuration.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack/configuration.js b/config/webpack/configuration.js index 9cdd6f934..852185eb9 100644 --- a/config/webpack/configuration.js +++ b/config/webpack/configuration.js @@ -30,6 +30,9 @@ for (let i = 0; i < flavourFiles.length; i++) { if (!data.pack_directory) { data.pack_directory = dirname(flavourFile); } + if (data.locales) { + data.locales = join(dirname(flavourFile), data.locales); + } if (data.pack && typeof data.pack === 'object') { flavours[data.name] = data; } @@ -45,7 +48,7 @@ for (let i = 0; i < skinFiles.length; i++) { const data = flavours[name].skin; if (lstatSync(skinFile).isDirectory()) { data[skin] = {}; - const skinPacks = glob.sync(resolve(skinFile, '*.{css,scss}')); + const skinPacks = glob.sync(join(skinFile, '*.{css,scss}')); for (let j = 0; j < skinPacks.length; j++) { const pack = skinPacks[i]; data[skin][basename(pack, extname(pack))] = pack; |