You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bundling with glslify, comments are not removed from the final source string. I'm trying to the output to be as packed as possible. I am currently using a custom function in my own fork of glslify-bundle that does the trick:
function strip_comments(tokens) {
for (var i = 1; i < tokens.length; i++) {
var token = tokens[i]
if (token.type == 'block-comment' || token.type == 'line-comment') {
tokens.splice(i--, 1);
}
}
return tokens
}
When bundling with glslify, comments are not removed from the final source string. I'm trying to the output to be as packed as possible. I am currently using a custom function in my own fork of glslify-bundle that does the trick:
then in the Bundle function I just do:
Would you accept a PR for this change?
The text was updated successfully, but these errors were encountered: