question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is possible overwrite the same file

See original GitHub issue

Hi, Is possible overwrite the same file? for example

gulp.task('styles', function() {
  return gulp.src('content/**/*.css')
    .pipe(minifyCSS())
    .pipe(gulp.dest('content'));
});

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

29reactions
yocontracommented, Apr 16, 2014

yes

16reactions
juliocanarescommented, Mar 20, 2016

yes it’s possible just add the base parameter

  gulp.src('./app/**/*.js', {base: './'})
        .pipe(prettify())
        .pipe(gulp.dest('./'));
Read more comments on GitHub >

github_iconTop Results From Across the Web

What happens when I overwrite an existing file with the same ...
As others have said, in most cases if a program writes two files with the exact same name, the first will be lost...
Read more >
Would overwriting a file with the same exact content have an ...
Short answer. No the controllers do not examine the current file contents before overwriting. That would add significant overhead to a write ...
Read more >
Is it possible to copy the same file without overwriting it with
For example I would like to have XCOPY make duplicate files when I run it but make a copy of the new file(s)...
Read more >
Write to file, but overwrite it if it exists - Stack Overflow
I was unable to overwrite files, in this manner.. echo "i know about Pipes, girlfriend" > thatAnswer. zsh: file exists: thatAnswer.
Read more >
Can you recover overwritten files on your hard drive?
Let's be honest, files don't overwrite themselves. If a file has been saved over, there's a pretty good chance that it's the result...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found