summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-03-13 17:45:16 +0100
committerJose <jose@zeroc.com>2015-03-13 17:45:16 +0100
commit9f6a61b01c7303f9cfea156f610a2a2de63bc957 (patch)
tree0e29db27b12951ec8ffc2e93b40ae1152251234f
parentminor update makeubunturepo.py (diff)
downloadice-9f6a61b01c7303f9cfea156f610a2a2de63bc957.tar.bz2
ice-9f6a61b01c7303f9cfea156f610a2a2de63bc957.tar.xz
ice-9f6a61b01c7303f9cfea156f610a2a2de63bc957.zip
Let non slice files pass-through gulp-slice2js
-rw-r--r--js/gulp/gulp-slice2js/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/gulp/gulp-slice2js/index.js b/js/gulp/gulp-slice2js/index.js
index 0135f48fb95..e59964dca17 100644
--- a/js/gulp/gulp-slice2js/index.js
+++ b/js/gulp/gulp-slice2js/index.js
@@ -92,6 +92,15 @@ function isBuildRequired(inputFile, outputFile, dependFile)
function compile(slice2js, file, args, cb)
{
+ //
+ // Let non Slice files pass-through
+ //
+ if(path.extname(file.path) != ".ice")
+ {
+ cb(null, file);
+ return;
+ }
+
var p = slice2js(args.concat(defaultCompileArgs).concat([file.path]));
var buffer = new Buffer(0);