From 8369d48584a529f170f21c4084647a1194e753a0 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 27 Sep 2016 14:47:19 +0200 Subject: [PATCH] Backup --- .gitignore | 1 - app.js | 12 ++++++------ webpack.sh | 4 ---- 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100755 webpack.sh diff --git a/.gitignore b/.gitignore index 9bc0ab50..3c3629e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ node_modules -hedera-web.js diff --git a/app.js b/app.js index 08289faf..eae0c48e 100644 --- a/app.js +++ b/app.js @@ -25,27 +25,27 @@ function loadLocale (lang, cb) switch (lang) { case 'ca': - require.ensure ([], function (){ + require ([], function (){ cb (require.context ('locale/ca/js')); }); break; case 'es': - require.ensure ([], function () { + require ([], function () { cb (require.context ('locale/es/js')); }); break; case 'fr': - require.ensure ([], function () { + require ([], function () { cb (require.context ('locale/fr/js')); }); break; case 'mn': - require.ensure ([], function () { + require ([], function () { cb (require.context ('locale/mn/js')); }); break; case 'pt': - require.ensure ([], function () { + require ([], function () { cb (require.context ('locale/pt/js')); }); break; default: - require.ensure ([], function () { + require ([], function () { cb (require.context ('locale/en/js')); }); } } diff --git a/webpack.sh b/webpack.sh deleted file mode 100755 index 67f58c3e..00000000 --- a/webpack.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -export NODE_PATH="/usr/local/lib/node_modules" && -webpack --progress --colors --watch