Created
June 16, 2015 13:29
-
-
Save Misiur/94af7a97247bd61dde6a to your computer and use it in GitHub Desktop.
Recipe for middleware for inlining vertexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.src('src/dev.html') | |
.pipe(inlinesource({ | |
rootpath: '.', | |
handlers: [ | |
function vertex(source, context, next) { | |
if (source.type === 'x-shader/x-vertex') { | |
source.type = 'js'; | |
source.attributes.type = 'x-shader/x-vertex'; | |
} | |
next(); | |
} | |
] | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment