fix(deploy): 誤ったファイルがキャッシュされ新しいバージョンにアップデートされない問題の修正 (#125)

This commit is contained in:
まっちゃとーにゅ
2023-07-29 07:26:34 +09:00
committed by GitHub
parent eb7461c2e1
commit 0f4bad8c5e
5 changed files with 6 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
import * as fs from 'node:fs';
import gulp from 'gulp';
import rename from 'gulp-rename';
import replace from 'gulp-replace';
import terser from 'gulp-terser';
import cssnano from 'gulp-cssnano';
@@ -47,6 +48,7 @@ gulp.task('build:backend:script', () => {
.pipe(terser({
toplevel: true
}))
.pipe(rename({ suffix: `.${meta.version}` }))
.pipe(gulp.dest('./built/_frontend_dist_/'));
});