fix(deploy): 誤ったファイルがキャッシュされ新しいバージョンにアップデートされない問題の修正 (#125)
This commit is contained in:
		
							parent
							
								
									eb7461c2e1
								
							
						
					
					
						commit
						0f4bad8c5e
					
				|  | @ -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_/')); | ||||
| }); | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -2,4 +2,4 @@ doctype html | |||
| 
 | ||||
| html | ||||
| 	#msg | ||||
| 	script(src=`/assets/flush.js?v=${version}`) | ||||
| 	script(src=`/assets/flush.${version}.js`) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue