Open tryer3000 opened 8 years ago
Oh I'm so glad I'm not the only one.
I worked around this with a filter that filtered out map files:
const removeMapFiles = filter(['**/*', '!maps/**')], {restore: true});
// gulp stuff here...
.pipe(removeMapFiles) // remove map files from the stream because we don't want them written to the markup
.pipe(revReplace())
.pipe(removeMapFiles.restore)
Here's a tiny reproducible project: https://github.com/akatakritos/gulp-rev-replace-repro
I'll look into a fix this afternoon as well.
@akatakritos - thanks, that solved my issue. But you have some small issues in example
const removeMapFiles = filter(['**/*', '!maps/**'], {restore: true});
// gulp stuff here...
.pipe(removeMapFiles) // remove map files from the stream because we don't want them written to the markup
.pipe(revReplace())
.pipe(removeMapFiles.restore())
``
rev-replace will replace original
with
Here is my gulp task: