Tagged articles
2 articles
Page 1 of 1
WeChatFE
WeChatFE
Mar 22, 2022 · Frontend Development

Why Vite Builds Blank on iOS 11 and How to Fix It with esbuild Target Settings

After upgrading a project to Vite, users on iOS 11 experienced blank pages due to compatibility issues caused by esbuild’s minification generating modern syntax; the article explains the root cause, examines legacy plugin settings, and shows how explicitly setting esbuild.target to 'es6' (or using terser) resolves the problem.

Frontend BuildViteesbuild
0 likes · 8 min read
Why Vite Builds Blank on iOS 11 and How to Fix It with esbuild Target Settings
Node Underground
Node Underground
Nov 12, 2015 · Backend Development

How to Prevent CPU 100% When Using html-minifier in Node.js

This article explores the challenges of real‑time HTML and inline JS/CSS minification with html‑minifier in Node.js, including CPU‑spike bugs caused by malformed HTML, workarounds using the vm module with timeouts, performance optimizations, and future directions for faster, stable compression.

CPUhtml-minifierminification
0 likes · 6 min read
How to Prevent CPU 100% When Using html-minifier in Node.js