RepositoryJavaScriptCNTrung Quốc
ElemeFE

ElemeFE/obsolete-webpack-plugin

🌈 A Webpack plugin generates a browser-side standalone script that detects browser compatibility based on `Browserslist` and prompts website users to upgrade it.

185sao
13fork
6issue
3lượt xem

🛠️ Plugin Webpack phát hiện trình duyệt lỗi thời, nhắc nâng cấp ngay trong trình duyệt

Dựa trên Browserslist — phát hiện chính xác trình duyệt không đạt yêu cầu, hiển thị thông báo nâng cấp ngay khi người dùng mở trang.

obsolete-webpack-plugin là một plugin Webpack do nhóm frontend Eleme phát triển. Plugin sinh ra một đoạn script độc lập chạy phía client, dựa trên cấu hình Browserslist để kiểm tra khả năng tương thích của trình duyệt người dùng. Nếu trình duyệt không đạt yêu cầu (ví dụ: IE8 khi dự án chỉ hỗ trợ IE > 8), thông báo sẽ hiện ra ngay lập tức — tránh tình trạng người dùng thấy trang trắng và không hiểu nguyên nhân.

✨ Điểm nổi bật

  • Phát hiện theo Browserslist: tận dụng cấu hình trình duyệt đã có, không cần cấu hình lại.
  • Thông báo tùy chỉnh: hỗ trợ HTML template tùy chỉnh, có thể thêm CSS, script, nút đóng.
  • Tự động chèn vào body: hỗ trợ chèn ở đầu hoặc cuối thẻ body.
  • Hỗ trợ async loading: tích hợp dễ dàng với html-webpack-plugin và script-ext-html-webpack-plugin để tải không chặn render.
  • Cấu hình linh hoạt: tùy chọn tên chunk, vị trí chèn, danh sách trình duyệt ghi đè, bật/tắt thông báo cho trình duyệt không xác định.

💡 Vì sao đáng chú ý

Không phải lúc nào cũng có polyfill cho mọi tính năng — như Service Worker, WebAssembly hay CSS Grid. Khi người dùng dùng trình duyệt cũ, trang có thể bị đứt gãy mà họ không hay biết. Plugin này giải quyết bài toán đó bằng cách cảnh báo rõ ràng và ngay lập tức.


#Webpack #Browserslist #BrowserCompatibility #FrontendTooling #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
NekR/offline-plugin

Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)

4.5k
Nov 8, 2021
RepositoryJavaScript
vercel/next.js

The React Framework

143.9k
Dec 1, 2026
RepositoryJavaScript
vercel/next.js

The React Framework

143.9k
Dec 1, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.

191.0k
Nov 29, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026