gulp-xsltproc
v1.2.0
Published
gulp plugin for node-xsltproc (wrapper around xsltproc with profiling information)
Downloads
194
Readme
gulp-xsltproc
Getting started
Install the module with: npm install gulp-xsltproc --save
There is an external dependency on xsltproc required by node-xsltproc
. Check its documentation.
Options
warning_as_error
: treat xsltproc warning as error (default: true)metadata
: emit a new vinyl file with a.json
extension containing the metadata fromnode-xsltproc
(default: true)stylesheet
: define a custom stylesheet used for transforming- additional options are passed as it is to
node-xsltproc
Examples
const xsltproc = require('gulp-xsltproc');
gulp.task('default', () => {
let options = {};
return gulp.src('src/**/*.xml', {base: 'src'})
.pipe(xsltproc(options))
.pipe(gulp.dest('dist'))
});