From 5fbf4a4fe32c2d0f9235df5bc5d4a89f61f87330 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 10 Sep 2013 18:47:36 -0500 Subject: Map Sizzle to a path with config to allow users to put Sizzle wherever they want --- build/tasks/build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build') 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;" ); -- cgit v1.2.3