Skip to content

Commit

Permalink
Fix jquery module ref
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Jan 20, 2016
1 parent 3e5d621 commit 63caa7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/gulp/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ var mangle = {
};

function renameModules(match) {
return match.replace(/['"]([\w\.\-\/]+)?['"]/g, '"$1.min"');
return match.replace(/['"]([\w\.\-\/]+)?['"]/g, function(_, module) {
return module == "jquery" ? '"jquery"' : `"${module}.min"`
});
}


Expand Down

0 comments on commit 63caa7d

Please sign in to comment.