javascript - gulp-header only inject if it is not there already? -


does know how accomplish injecting header if not there?

i using gulp-header plugin:

  injectcopyright() {     return gulp.src([       `${config.distdir}/**/*.js`,       `${config.distdir}/**/*.css`,       '!' + `${config.distvendorjsdir}/**`     ])       .pipe(header('/*\n' + copyright + '\n*/\n'))       .pipe(gulp.dest(config.distdir));   } 

every time above gulp task runs injects copyright each time adding new 1 every time. know how accomplish this?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -