S
S
Shamhaner2021-07-09 11:42:30
gulp.js
Shamhaner, 2021-07-09 11:42:30

How to replace characters in the name of several files using GULP in one task?

I used gulp-rename with the suffix option, the problem is that when this option is later included in the tasks, the suffix in the file name is added to the previous one, and the suffix characters need to be replaced.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-07-09
@Shamhaner

Gulp-rename can take a function as a parameter. In a function, you can check if a suffix needs to be added.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question