Answer the question
In order to leave comments, you need to log in
Replacing js files with gulp-replace for multiple lines?
How can I write pipe
for gulp-replace
for multiple js in gulpfile.js ?
In index.html :
<script src="js/main.js"></script>
<script src="js/plagin-1.min.js"></script>
<script src="js/plagin-2.js"></script>
.pipe(replace('main.js', assets['main.js']))
<body>
...
<script src="js/main-0aff1519.js"></script>
<script src="js/plagin-1.min-c52476c9.js"></script>
<script src="jsplagin-2-da39a3ee.js"></script>
...
Answer the question
In order to leave comments, you need to log in
Use regular.
https://www.npmjs.com/package/gulp-replace#regex-r...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question