diff options
author | ncls7615 <himasoto@gmail.com> | 2017-12-11 09:43:21 +0900 |
---|---|---|
committer | ncls7615 <himasoto@gmail.com> | 2017-12-11 09:43:21 +0900 |
commit | a98b0a47ef19f587da60907b68c5c5edfde432a0 (patch) | |
tree | 50a37fa1dc6aafb1210a441dd989605a646d3e21 /config/webpack/configuration.js | |
parent | 0e567977923f2e7827192da0990d529859033f1a (diff) | |
parent | 26c9b9fa276fd629789fd06f65a5d698b182f67a (diff) |
Merge branch 'master' of https://github.com/glitch-soc/mastodon into glitch-langfiles
# Conflicts: # app/javascript/glitch/locales/ja.json
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; |