1
我可以從索引中重命名文件名。採用以下配置使用gulp刪除index.html的正文內容
Gulp.js
var rename = require("gulp-rename");
gulp.task('modify-html', function() {
gulp.src('reports/index.html')
.pipe(rename('/app.html'))
.pipe(gulp.dest('reports/'));
});
有誰知道如何使用一飲而盡
的index.html
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
感謝您的回答,但我想刪除使用腳本本身的內容,對於上面的一個我必須手動添加一些額外的代碼,這是必要的,從html –
,真棒工作,非常感謝你,它現在工作得很好 –