gulp执行路径替换task不成功,详情如下。gulp代码如下:
gulp.task('replaceHtml', function () {
return gulp.src("index-min.html")
.pipe(revReplace({
manifast: "rev/rev-manifest.json"
}))
.pipe(gulp.dest("rev"));
});
rev-mainfest文件如下:
{
"index.min.js": "index-cf5b43a73e.min.js"
}
index.html中路径引用如下:
<script src="/scripts/index.min.js"></script>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。