Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Style Not Respecting Suffix #95

Open
XedinUnknown opened this issue Feb 3, 2021 · 0 comments
Open

Function Style Not Respecting Suffix #95

XedinUnknown opened this issue Feb 3, 2021 · 0 comments

Comments

@XedinUnknown
Copy link

XedinUnknown commented Feb 3, 2021

When trying to add a suffix in a function-style rename() call, the suffix gets ignored.

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():

{
  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant