We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It'd be nice to be able to do something like this:
var stripCode = require('gulp-strip-code'); gulp.task('templates', function(){ gulp.src(['file.txt']) .pipe(stripCode({ start_comment: ["<!--start-test-block-->", "/*start-test-block*/", "//start-test-block"], end_comment: ["<!--end-test-block-->", "/*end-test-block*/", "//end-test-block"] })) .pipe(gulp.dest('build/file.txt')); });
In order to parse multiple types of files in one go.
The text was updated successfully, but these errors were encountered:
Alternatively, providing a regular expression for these values could work too. Along the lines of:
var stripCode = require('gulp-strip-code'); gulp.task('templates', function(){ gulp.src(['file.txt']) .pipe(stripCode({ start_comment: "/(?:<!--|\/\*|\/\/)start-test-block(?:-->|\*\/)?/g", end_comment: "/(?:<!--|\/\*|\/\/)end-test-block(?:-->|\*\/)?/g" })) .pipe(gulp.dest('build/file.txt')); });
Sorry, something went wrong.
No branches or pull requests
It'd be nice to be able to do something like this:
In order to parse multiple types of files in one go.
The text was updated successfully, but these errors were encountered: