kubosho / web-speed-hackathon-2024

Mozilla Public License 2.0
0 stars 0 forks source link

ビルドの最適化 #13

Open kubosho opened 7 months ago

kubosho commented 7 months ago
workspaces/server build$ pnpm run build:clean && pnpm run build:tsup && pnpm run build:copy
workspaces/client build$ pnpm run build:clean && pnpm run build:tsup && pnpm run build:copy
workspaces/server build: > @wsh-2024/server@ build:clean /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/server
workspaces/server build: > rm -rf ./dist
workspaces/client build: > @wsh-2024/client@ build:clean /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/client
workspaces/client build: > rm -rf ./dist
workspaces/client build: > @wsh-2024/client@ build:tsup /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/client
workspaces/client build: > tsup
workspaces/server build: > @wsh-2024/server@ build:tsup /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/server
workspaces/server build: > tsup
workspaces/client build: CLI Building entry: {"client":"/Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/client/src/index.tsx","serviceworker":"/Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/client/src/serviceworker/index.ts"}
workspaces/client build: CLI Using tsconfig: ../../tsconfig.json
workspaces/client build: CLI tsup v8.0.1
workspaces/client build: CLI Using tsup config: /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/client/tsup.config.ts
workspaces/client build: CLI Target: chrome58,firefox57,safari11,edge18
workspaces/client build: CLI Cleaning output folder
workspaces/client build: IIFE Build start
workspaces/server build: CLI Building entry: {"server":"/Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/server/src/server.tsx"}
workspaces/server build: CLI Using tsconfig: ../../tsconfig.json
workspaces/server build: CLI tsup v8.0.1
workspaces/server build: CLI Using tsup config: /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/server/tsup.config.ts
workspaces/server build: CLI Target: node18
workspaces/server build: CLI Cleaning output folder
workspaces/server build: CJS Build start
workspaces/client build: IIFE dist/serviceworker.global.js 6.14 MB
workspaces/client build: IIFE dist/client.global.js        114.65 MB
workspaces/client build: IIFE ⚡️ Build success in 3154ms
workspaces/server build: CJS dist/server.js     36.89 MB
workspaces/server build: CJS dist/server.js.map 29.14 MB
workspaces/server build: CJS ⚡️ Build success in 3225ms
workspaces/client build: > @wsh-2024/client@ build:copy /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/client
workspaces/client build: > cp -r ./assets ./dist/assets
workspaces/client build: Done
workspaces/server build: > @wsh-2024/server@ build:copy /Users/a14816/src/github.com/kubosho/web-speed-hackathon-2024/workspaces/server
workspaces/server build: > cp -r ./seeds/images ./dist/images
workspaces/server build: Done
kubosho commented 7 months ago

CLI Target: chrome58,firefox57,safari11,edge18

後述の通りChrome最新版にだけ対応していればいいはず。

Google Chrome 最新版において、著しい機能落ちやデザイン差異を発生させてはならない from: https://github.com/CyberAgentHack/web-speed-hackathon-2024/blob/534d38ab86d22ba758fddfa63f1d1988616cf105/docs/regulation.md?plain=1#L15