Skip to content

Commit

Permalink
Build: Do not fetch i18n files unless explicitly requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayarjo committed Aug 6, 2015
1 parent 94d4c7a commit e9341a9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jakefile.js
Expand Up @@ -52,7 +52,7 @@ task("moxie", [], function (params) {


desc("Minify JS files");
task("mkjs", [], function (params) {
task("mkjs", [], function (i18n) {
var Instrument = require('coverjs').Instrument;
var uglify = tools.uglify;

Expand Down Expand Up @@ -116,9 +116,11 @@ task("mkjs", [], function (params) {
fs.writeFileSync(targetDir + "/plupload.full.min.js", code);

// Add I18n files
process.env.auth = "moxieuser:12345";
process.env.to = "./js/i18n";
jake.Task['i18n'].invoke();
if (i18n) {
process.env.auth = "moxieuser:12345";
process.env.to = "./js/i18n";
jake.Task['i18n'].invoke();
}
});


Expand Down

0 comments on commit e9341a9

Please sign in to comment.