aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-09-10 18:47:36 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-09-10 18:48:53 -0500
commit5fbf4a4fe32c2d0f9235df5bc5d4a89f61f87330 (patch)
tree141d9a6f5d1d97ba02738e6cac0207aa1ed03c1c /build
parent812319093a87594b88a6fdb99d9879e14196b9e1 (diff)
downloadjquery-5fbf4a4fe32c2d0f9235df5bc5d4a89f61f87330.tar.gz
jquery-5fbf4a4fe32c2d0f9235df5bc5d4a89f61f87330.zip
Map Sizzle to a path with config to allow users to put Sizzle wherever they want
Diffstat (limited to 'build')
-rw-r--r--build/tasks/build.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 21779d80a..aab7ae084 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -26,6 +26,9 @@ module.exports = function( grunt ) {
startFile: "src/intro.js",
endFile: "src/outro.js"
},
+ paths: {
+ sizzle: "../bower_components/sizzle/dist/sizzle"
+ },
rawText: {},
onBuildWrite: convert
};
@@ -47,7 +50,7 @@ module.exports = function( grunt ) {
.replace( rdefineEnd, "" );
// Sizzle treatment
- } else if ( /\/sizzle$/.test( name ) ) {
+ } else if ( /^sizzle$/.test( name ) ) {
contents = "var Sizzle =\n" + contents
// Remove EXPOSE lines from Sizzle
.replace( /\/\/\s*EXPOSE[\w\W]*\/\/\s*EXPOSE/, "return Sizzle;" );