From 970993c979661715bcf3a601267c79fc2b4886b3 Mon Sep 17 00:00:00 2001 From: dirty Date: Sat, 23 May 2015 16:31:04 -0700 Subject: [PATCH] feat(lib): ignore js file --- lib/index.js | 2 ++ src/index.ls | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/index.js b/lib/index.js index f83bc84..6a177b3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -34,6 +34,8 @@ VinylLSConverter = (function(){ return [null, file]; } else if (file.isStream()) { return ["Streaming not supported", null]; + } else if ('.js' === Path.extname(file.path)) { + return [null, file]; } else { return this._tryConvertToJS(file.clone()); } diff --git a/src/index.ls b/src/index.ls index eb82261..0841df1 100644 --- a/src/index.ls +++ b/src/index.ls @@ -30,6 +30,8 @@ class VinylLSConverter [null, file] else if file.isStream! ["Streaming not supported", null] + else if '.js' is Path.extname file.path + [null, file] else @_tryConvertToJS(file.clone!)