@zealakit/css-doctor-remix 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/README_CN.md +2 -0
- package/README_VI.md +2 -0
- package/package.json +24 -2
package/README.md
CHANGED
|
@@ -55,6 +55,9 @@ export const assets = withCssDoctorAssets(baseAssets, {
|
|
|
55
55
|
## Safety and limitations
|
|
56
56
|
|
|
57
57
|
- No pageCoverage: Remix 3 has no build-time route-to-CSS graph.
|
|
58
|
+
- Size-budget splitting may produce multiple internal chunks, but the middleware
|
|
59
|
+
still returns **one concatenated CSS response** for the requested URL (variables
|
|
60
|
+
+ body parts). Clients do not receive separate HTTP URLs per part.
|
|
58
61
|
- Optimizes successful text/css GET responses and falls back to the original response on failure.
|
|
59
62
|
- Uses an LRU cache based on URL, source ETag, and content hash.
|
|
60
63
|
- Load page-specific module stylesheets from controller actions, not a global document head.
|
package/README_CN.md
CHANGED
|
@@ -55,6 +55,8 @@ export const assets = withCssDoctorAssets(baseAssets, {
|
|
|
55
55
|
## 安全与限制
|
|
56
56
|
|
|
57
57
|
- 不支持 pageCoverage:Remix 3 没有构建期 route-to-CSS 图。
|
|
58
|
+
- Size budget 可能在内部拆成多个 chunk,但中间件仍返回**单个拼接后的 CSS
|
|
59
|
+
响应**(变量 + body parts),不会为每个 part 暴露独立 HTTP URL。
|
|
58
60
|
- 优化成功的 text/css GET 响应,失败时回退原始响应。
|
|
59
61
|
- 使用基于 URL、源 ETag 和内容哈希的 LRU 缓存。
|
|
60
62
|
- 按 controller action 加载页面 module 样式,不要硬编码到全局 document head。
|
package/README_VI.md
CHANGED
|
@@ -55,6 +55,8 @@ export const assets = withCssDoctorAssets(baseAssets, {
|
|
|
55
55
|
## An toàn và giới hạn
|
|
56
56
|
|
|
57
57
|
- Không có pageCoverage: Remix 3 không có route-to-CSS graph lúc build.
|
|
58
|
+
- Size-budget có thể tạo nhiều chunk nội bộ, nhưng middleware vẫn trả **một**
|
|
59
|
+
response CSS đã nối (variables + body parts), không phải nhiều URL HTTP.
|
|
58
60
|
- Tối ưu response text/css thành công và fallback response gốc khi lỗi.
|
|
59
61
|
- Dùng LRU cache theo URL, ETag gốc và content hash.
|
|
60
62
|
- Nạp stylesheet module theo action controller, không hardcode toàn bộ vào document head.
|
package/package.json
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zealakit/css-doctor-remix",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Remix 3 asset-server middleware for css-doctor CSS optimization",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css",
|
|
7
|
+
"css-doctor",
|
|
8
|
+
"remix",
|
|
9
|
+
"remix-run",
|
|
10
|
+
"react-router",
|
|
11
|
+
"middleware",
|
|
12
|
+
"asset-server",
|
|
13
|
+
"css-analysis",
|
|
14
|
+
"css-optimizer",
|
|
15
|
+
"dead-code-elimination",
|
|
16
|
+
"unused-css",
|
|
17
|
+
"purgecss",
|
|
18
|
+
"css-splitting",
|
|
19
|
+
"page-coverage",
|
|
20
|
+
"size-budget",
|
|
21
|
+
"performance",
|
|
22
|
+
"web-performance",
|
|
23
|
+
"react",
|
|
24
|
+
"frontend",
|
|
25
|
+
"ssr"
|
|
26
|
+
],
|
|
5
27
|
"author": "nqhed - Huy Edward Nguyen",
|
|
6
28
|
"type": "module",
|
|
7
29
|
"license": "MIT",
|
|
@@ -21,7 +43,7 @@
|
|
|
21
43
|
"README_CN.md"
|
|
22
44
|
],
|
|
23
45
|
"dependencies": {
|
|
24
|
-
"@zealakit/css-doctor-binding": "1.
|
|
46
|
+
"@zealakit/css-doctor-binding": "1.1.0"
|
|
25
47
|
},
|
|
26
48
|
"devDependencies": {
|
|
27
49
|
"@types/node": "^22.20.5",
|