1.2.0 • Published 5 years ago
gulp-xsltproc v1.2.0
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.jsonextension 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'))
});