From a0c83dd792373baa64beb789e1acfe525e3cb4be Mon Sep 17 00:00:00 2001 From: wangweihua Date: Sun, 19 Mar 2017 19:22:17 +0800 Subject: [PATCH 1/3] skip file not in extensions, do not process at all --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index b82001b..bc6f9ae 100644 --- a/index.js +++ b/index.js @@ -47,6 +47,7 @@ module.exports = function (params) { } if (file.isBuffer()) { + if (!inExtensions(file.path)) return callback(null, file); var result = processInclude(String(file.contents), file.path, file.sourceMap); file.contents = new Buffer(result.content); From d2a034a5c0fbef3d09cb0dcd186c281fa4e8613c Mon Sep 17 00:00:00 2001 From: wangweihua Date: Sun, 19 Mar 2017 19:48:12 +0800 Subject: [PATCH 2/3] change repo url and package name for npm pub --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 475be89..7c7451f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "gulp-include", + "name": "gulp-include-2", "version": "2.3.1", "description": "Makes inclusion of files a breeze. Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.", "homepage": "http://github.com/wiledal/gulp-include", "repository": { "type": "git", - "url": "git://github.com/wiledal/gulp-include.git" + "url": "git://github.com/aztack/gulp-include.git" }, "main": "index.js", "scripts": { From 2c7f0b740654bd9e467c577ccd3c28e5052a2d67 Mon Sep 17 00:00:00 2001 From: wangweihua Date: Sun, 19 Mar 2017 23:23:34 +0800 Subject: [PATCH 3/3] change back --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7c7451f..475be89 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "gulp-include-2", + "name": "gulp-include", "version": "2.3.1", "description": "Makes inclusion of files a breeze. Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.", "homepage": "http://github.com/wiledal/gulp-include", "repository": { "type": "git", - "url": "git://github.com/aztack/gulp-include.git" + "url": "git://github.com/wiledal/gulp-include.git" }, "main": "index.js", "scripts": {