Given the following input files in src/
, how do I output the files on the dist/
folder?
Project
+-- src
| a.md
| b.md
+-- dest
| a/index.html
| b/index.html
// Gulpfile.js
const gulp = require('gulp');
const md = require('gulp-markdown');
gulp.task('md', () => {
return gulp.src('src/**/*.md')
.pipe(md())
.pipe(gulp.dest( // help ))
})
I think this is not a duplicate of Gulp.js - Use path from gulp.src() in gulp.dest(). That question deals with variable directory names and variable filenames. This question deals with variable directory names but with a constant filename.