From 0f4bad8c5e5f651b428e60c765956a04ea7f0cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sat, 29 Jul 2023 07:26:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=E8=AA=A4=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=8C=E3=82=AD=E3=83=A3?= =?UTF-8?q?=E3=83=83=E3=82=B7=E3=83=A5=E3=81=95=E3=82=8C=E6=96=B0=E3=81=97?= =?UTF-8?q?=E3=81=84=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=81=AB?= =?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E3=83=87=E3=83=BC=E3=83=88=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(#125)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.mjs | 2 ++ packages/backend/src/server/web/views/base.pug | 2 +- packages/backend/src/server/web/views/bios.pug | 2 +- packages/backend/src/server/web/views/cli.pug | 2 +- packages/backend/src/server/web/views/flush.pug | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 16d48c1ddc..aaa96cf4d1 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -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_/')); }); diff --git a/packages/backend/src/server/web/views/base.pug b/packages/backend/src/server/web/views/base.pug index 70d9c06861..2cfdb2a1cf 100644 --- a/packages/backend/src/server/web/views/base.pug +++ b/packages/backend/src/server/web/views/base.pug @@ -63,7 +63,7 @@ html style include ../style.css - script(src=`/assets/boot.js?v=${version}`) + script(src=`/assets/boot.${version}.js`) body noscript: p diff --git a/packages/backend/src/server/web/views/bios.pug b/packages/backend/src/server/web/views/bios.pug index 54706b9c90..196c57bc1d 100644 --- a/packages/backend/src/server/web/views/bios.pug +++ b/packages/backend/src/server/web/views/bios.pug @@ -8,7 +8,7 @@ html title Misskey Repair Tool style include ../bios.css - script(src=`/assets/bios.js?v=${version}`) + script(src=`/assets/bios.${version}.js`) body header diff --git a/packages/backend/src/server/web/views/cli.pug b/packages/backend/src/server/web/views/cli.pug index 51d45cefd3..b3f7009dd5 100644 --- a/packages/backend/src/server/web/views/cli.pug +++ b/packages/backend/src/server/web/views/cli.pug @@ -8,7 +8,7 @@ html title Misskey Cli style include ../cli.css - script(src=`/assets/cli.js?v=${version}`) + script(src=`/assets/cli.${version}.js`) body header diff --git a/packages/backend/src/server/web/views/flush.pug b/packages/backend/src/server/web/views/flush.pug index 2ce426ae1d..9dafdc81ab 100644 --- a/packages/backend/src/server/web/views/flush.pug +++ b/packages/backend/src/server/web/views/flush.pug @@ -2,4 +2,4 @@ doctype html html #msg - script(src=`/assets/flush.js?v=${version}`) + script(src=`/assets/flush.${version}.js`)