0
從一飲而盡-REV @鏈接:https://github.com/sindresorhus/gulp-rev 我已經寫了簡單的如何使用file.revHash使用gulp-rev?
gulp.task('build-app', function() {
return gulp
.src([gulpConfig.clientApp + '*.js'])
.pipe($.rev())
// i want to get the updated hash, which I will use to replace the string in some place
}
任何想法如何acheive它的任務嗎?
什麼是放出來的凍結()?它不在現場文檔 – Dreamweaver
是啊,它是:「這gulpfile創建一個文件名爲app.min_0187d9d019510c4e1492acad3015fda0.js從你的app.min.js」 – Barryman9000
當然。將盡力..謝謝兄弟.. – Dreamweaver