File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 " />
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 >
Original file line number Diff line number Diff line change 1- // vite.config.ts->globals: true と設定したのでimportしなくても良い
2-
3- // import { describe, expect, it } from "vitest";
4-
51import { add } from "./add" ;
62
73describe ( "add" , ( ) => {
Original file line number Diff line number Diff line change 1- /// <reference types="vitest" />
21import react from "@vitejs/plugin-react" ;
32import { defineConfig } from "vite" ;
43import type { VitePWAOptions } from "vite-plugin-pwa" ;
You can’t perform that action at this time.
0 commit comments