0
我想缩小,然后创建一个没有“src”的副本。任何文件夹内的每个index.src.php文件的一部分,所以我还是有index.src.php可用,但一个精缩副本的index.php:gulp重命名文件在同一目录
gulp.task('usemin', function() {
return gulp.src('./**/index.src.php')
.pipe(usemin({
inlinecss: [ minifyCss, 'concat' ]
}))
.pipe(rename(function(path){
path.basename = path.basename.replace('min\.', '');
}))
.pipe(gulp.dest('.'));
});
...到目前为止,这只是字面上重命名index.src .PHP到index.php中