Rasmus Bækgaard
Rasmus Bækgaard

Reputation: 1848

Should Gulp clean the source path?

I have the following code to generate my files in my gulpfile.js:

var config = {
    dist: "./WebApplication/Assets/dist",
    source: "./WebApplication/Assets/"
};

/* ************************ Clean ************************ */
gulp.task("clean", function () {
    return gulp.src(config.dist + "/*", { read: false })
    .pipe(clean({force:true}));
});

My question is, should I clean the source from the project as well, or at least ignore it in my .gitignore file?

Upvotes: 0

Views: 64

Answers (1)

Yago
Yago

Reputation: 295

I don't know all your project's context, but as I understand it, you don't have to clean your source, otherwise it will remove all your assets and not only your buildt files as current.

Upvotes: 1

Related Questions