Closed lmartins closed 10 years ago
Im trying to run this task on a folder of html email templates, which originally are php files, to convert them to preview files in html.
The -preview suffix is added correctly but the new file created still keeps the .php extension. Am I missing something here?
gulp.task('toHTML', function() { gulp.src("./html/**/*.php") .pipe(rename({ suffix: "-preview", extname: ".html" })) .pipe(gulp.dest("./html/")); });
That should work. Are you using latest version?
Thanks @hparra, I was using the latest version available when I first opened the issue. Today, after upgrading, it does work as expected. Cheers.
Im trying to run this task on a folder of html email templates, which originally are php files, to convert them to preview files in html.
The -preview suffix is added correctly but the new file created still keeps the .php extension. Am I missing something here?