Gulp Is Not Overwriting The Destination File
I've got a problem, regarding gulp. I decided to automate the process of how the source and styles are compiled into a single file, so I decided to use gulp for that purpose. Howev
Solution 1:
It sounds like your application.js file is being included in your src when you start the task each time.
You could try using a plugin such as gulp-debug to log out the current file in the stream to confirm. (See this answer for that)
If that's the cause you can then explicitly exclude it:
var sourcePaths = [
"!path/to/application.js",
basePath + "/**/*.js",
webPath + "/**/*.js"
];
Solution 2:
try below one
gulp.src("sourcefilepath") .pipe("destinationdirpath", { overwrite: false }))
Post a Comment for "Gulp Is Not Overwriting The Destination File"