Skip to content

Instantly share code, notes, and snippets.

@Misiur
Created June 16, 2015 13:29
Show Gist options
  • Save Misiur/94af7a97247bd61dde6a to your computer and use it in GitHub Desktop.
Save Misiur/94af7a97247bd61dde6a to your computer and use it in GitHub Desktop.
Recipe for middleware for inlining vertexes
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