Skip to content

Commit

Permalink
Fix jquery module ref
Browse files Browse the repository at this point in the history
Fix #1380
  • Loading branch information
petyosi committed Jan 20, 2016
1 parent c5edb8b commit 848fd6a
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 848fd6a

Please sign in to comment.