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:47:36 -0500
commitaab9d632797c46728a22eb615bd18cb7f5c9c497 (patch)
tree506309eb5d9726293c2a9a3245a6aa299ff96c02 /build
parent73fe17299a840a8a7f3ffffcac15e32a88bd3d66 (diff)
downloadjquery-aab9d632797c46728a22eb615bd18cb7f5c9c497.tar.gz
jquery-aab9d632797c46728a22eb615bd18cb7f5c9c497.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 cf5fc9b6f..419c74d48 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;" );