about summary refs log tree commit diff
path: root/config/webpack/shared.js
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-12-07 19:07:47 -0800
committerkibigo! <marrus-sh@users.noreply.github.com>2017-12-10 11:08:04 -0800
commitb28cd6769c77190160e4ffefde78b324c7aad269 (patch)
tree9b1957fb4e19c79ccc5018931eb5f1f57d996a79 /config/webpack/shared.js
parent83944300815cda2cd67c93ec7ca7f3d981b561fa (diff)
Javascript intl8n flavour support
Diffstat (limited to 'config/webpack/shared.js')
-rw-r--r--config/webpack/shared.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/config/webpack/shared.js b/config/webpack/shared.js
index e4b057ffb..62d96c3a2 100644
--- a/config/webpack/shared.js
+++ b/config/webpack/shared.js
@@ -7,7 +7,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
 const ManifestPlugin = require('webpack-manifest-plugin');
 const extname = require('path-complete-extname');
 const { env, settings, core, flavours, output, loadersDir } = require('./configuration.js');
-const localePackPaths = require('./generateLocalePacks');
+const localePacks = require('./generateLocalePacks');
 
 function reducePacks (data, into = {}) {
   if (!data.pack) {
@@ -48,11 +48,7 @@ function reducePacks (data, into = {}) {
 module.exports = {
   entry: Object.assign(
     { locales: resolve('app', 'javascript', 'locales') },
-    localePackPaths.reduce((map, entry) => {
-      const localMap = map;
-      localMap[basename(entry, extname(entry, extname(entry)))] = resolve(entry);
-      return localMap;
-    }, {}),
+    localePacks,
     reducePacks(core),
     Object.keys(flavours).reduce((map, entry) => reducePacks(flavours[entry], map), {})
   ),