Open XedinUnknown opened 3 years ago
When trying to add a suffix in a function-style rename() call, the suffix gets ignored.
rename()
rename(path => { let newPath = { dirname: path.dirname, basename: path.basename, extname: path.extname, suffix: '.min', } log(newPath) return newPath })
Output of log() together with debug():
log()
debug()
{ dirname: 'src/modules/WooCommerce/public/css', basename: 'admin', extname: '.css', suffix: '.min' } [17:55:40] gulp-debug: build/src/modules/WooCommerce/public/css/admin.css
This makes sense: the suffix and prefix are not being joined in the function-style scenario like they are in the object-stye scenario.
When trying to add a suffix in a function-style
rename()
call, the suffix gets ignored.Output of
log()
together withdebug()
:This makes sense: the suffix and prefix are not being joined in the function-style scenario like they are in the object-stye scenario.