-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
is possible overwrite the same file #267
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
Comments
yes |
so....how? |
yes it's possible just add the base parameter gulp.src('./app/**/*.js', {base: './'})
.pipe(prettify())
.pipe(gulp.dest('./')); |
gold star for you @juliocanares - worked for me |
not working for me.. var revReplace = require("gulp-rev-replace");
}); |
try this
|
Sounds dumb, but always check your write permissions on the file. If files are owned by root user then you may need to change that or sudo in order to overwrite. |
Just to be clear - the original ticket was asking "is it possible to overwrite a file" and pasted code. Yes, it is possible to overwrite a file - and yes, the code you pasted will work fine. For anyone still stumbling on this ticket - you don't have to do anything special to overwrite files. The code in the original ticket works fine - so yes. You only need the base parameter if you're trying to overwrite an input file with the same file from the same pipeline (like you just want to transform some files in a folder and replace them with the transformed ones). |
Hi,
Is possible overwrite the same file? for example
The text was updated successfully, but these errors were encountered: