M
M
MegaPuxapb2021-09-02 23:29:00
gulp.js
MegaPuxapb, 2021-09-02 23:29:00

Gulp how to replace all src?

There is a task, to create, in addition to the build, also a production. folder.
In the prod, you need to replace all links (in css, js, html) with others (like ../prod/13/15/.. jpg).
how to do it better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MegaPuxapb, 2021-09-03
@MegaPuxapb

found a solution. plug-ins for galp, mb to be useful to someone.
https://www.npmjs.com/package/gulp-replace-image-src
https://www.npmjs.com/package/gulp-css-replace-url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question