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

Source files not deleted #34

Closed
DavidOliver opened this issue Dec 11, 2014 · 3 comments
Closed

Source files not deleted #34

DavidOliver opened this issue Dec 11, 2014 · 3 comments

Comments

@DavidOliver
Copy link

Hi. I'm probably doing something wrong, but I'm finding the source files are not being deleted and that I end up with both the original and newly-named files.

I'm trying to rename a directory of .svg files to .tpl.

gulp.task('svg-rename', ['svg-min'], function() {
    return gulp.src('app/View/Elements/graphics/*.svg', { base: process.cwd() })
        .pipe(rename({
            extname: ".tpl"
        }))
        .pipe(gulp.dest('.'));
});

I'm using 1.2.0, and I have write permissions for the files in question. Thanks.

@shinnn
Copy link
Collaborator

shinnn commented Dec 17, 2014

probably doing something wrong

Yes, gulp-rename doesn't delete the source files. vinyl-paths and this official doc help you if you want gulp to work as you expected.

@DavidOliver
Copy link
Author

Many thanks. Sorry for posting a non-issue here.

@shinnn
Copy link
Collaborator

shinnn commented Dec 17, 2014

No problem :)

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

2 participants