Blog.

Notes on web development, tooling, and software engineering.

How to Show Additional Description for Enum Field in OpenAPI Document With Litestar

When using ScalarRenderPlugin of Litestar to build API document, you may want to display additional description for enum field in your OpenAPI documentation. This guide will show you how to achieve that.

Think Twice before Force Publish NPM Package

A release problem that looked like a rollback issue but came from package distribution reality.

How to use Vite with CDN

Making Vite work in a CDN deployment model without relying on vague configuration folklore.

How I resolve Clarity COEP blockage with CORS error

Resolving Microsoft Clarity script blockage caused by COEP headers when enabling SharedArrayBuffer for WebAssembly.

How to use asynchronous web apis from WebAssembly

Exploring approaches to call asynchronous web APIs from WebAssembly, including the SharedArrayBuffer solution and its trade-offs.

Chrome replace GET request with a huge range request

Investigating why Chrome replaces a normal GET request with a huge range request when loading PDF documents, and how to handle it properly.

Two Ways Use SVG Icons In vue-cli3 Based Project

Comparing icon font and SVG sprite approaches for managing icons in a Vue CLI 3 project.

Replace node-sass With dart-sass In vue-cli3 Based Project

Migrating from node-sass to dart-sass in a Vue CLI 3 project, resolving compatibility issues along the way.