Update the build process.

Former-commit-id: bc80960e1608982354366a37813785c277868d52
This commit is contained in:
John-David Dalton
2012-05-13 17:21:22 -04:00
parent cb4cc61c5b
commit 12fc6b3a67
4 changed files with 339 additions and 275 deletions

View File

@@ -105,7 +105,6 @@
/**
* Pre-process a given JavaScript `source`, preparing it for minification.
*
* @private
* @param {String} source The source to process.
* @returns {String} Returns the processed source.
*/
@@ -130,7 +129,7 @@
// minify `_.sortBy` internal properties
(function() {
var properties = ['criteria', 'value'],
snippet = source.match(RegExp('( +)function sortBy[\\s\\S]+?\\n\\1}'))[0],
snippet = source.match(/( +)function sortBy[\s\S]+?\n\1}/)[0],
result = snippet;
// minify property strings