Skip to content

Commit 420d5e0

Browse files
author
miyasan_0301
committed
♻️
1 parent 7903c12 commit 420d5e0

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="ja">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="description" content="React-Vite-TailwindCSS-Starter" />
5+
<meta name="description" content="Vite React & TailwindCSS SPA Starter" />
66
<meta name="viewport" content="width=device-width,initial-scale=1" />
77
<meta name="msapplication-TileColor" content="#333333" />
88
<meta name="theme-color" content="#333333" />
@@ -12,20 +12,21 @@
1212
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180" />
1313
<link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
1414

15-
<title>React-Vite-TailwindCSS-Starter</title>
15+
<title>Vite React & TailwindCSS SPA Starter</title>
1616
</head>
1717

1818
<body>
1919
<div id="root"></div>
2020
<script type="module" src="/src/main.tsx"></script>
21+
2122
<!-- PWA -->
2223
<script>
2324
if ("serviceWorker" in navigator) {
2425
window.addEventListener("load", () => {
2526
navigator.serviceWorker
2627
.register("./serviceWorker.js")
27-
.then((reg) => console.log("サービスワーカーの登録成功", reg.scope))
28-
.catch((err) => console.log("サービスワーカーの登録失敗", err));
28+
.then((reg) => console.log("serviceWorker success ", reg.scope))
29+
.catch((err) => console.log("serviceWorker error", err));
2930
});
3031
}
3132
</script>

src/tests/add.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// vite.config.ts->globals: true と設定したのでimportしなくても良い
2-
3-
// import { describe, expect, it } from "vitest";
4-
51
import { add } from "./add";
62

73
describe("add", () => {

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/// <reference types="vitest" />
21
import react from "@vitejs/plugin-react";
32
import { defineConfig } from "vite";
43
import type { VitePWAOptions } from "vite-plugin-pwa";

0 commit comments

Comments
 (0)