Skip to content

添加 post_process 插件#445

Open
neveler wants to merge 8 commits into
HMCL-dev:mainfrom
neveler:post_process
Open

添加 post_process 插件#445
neveler wants to merge 8 commits into
HMCL-dev:mainfrom
neveler:post_process

Conversation

@neveler
Copy link
Copy Markdown
Contributor

@neveler neveler commented Apr 6, 2026

添加 post_process 插件

变更

  • 移除由主题产生且无用的静态文件 / 文件夹
  • 引入运行时 js 压缩库 terser 用于处理魔改后的 js 文件
    • 该库依赖 nodejs / v8 环境,本 PR 对于 Drone 环境默认使用嵌入式 v8
    • 对于普通用户本地开发调试的需求,需确保本地环境中存在 nodejs (bun 也可以)

https://github.com/mmistakes/minimal-mistakes/blob/5786c35342d4f359ca40479f38e6255785ab1591/Rakefile#L160-L166


Ensure that your environment has a JavaScript interpreter supported by ExecJS. Using miniracer gem or NodeJS is recommended.
https://github.com/ahorek/terser-ruby


https://post-process-docs.hmcl.workers.dev/assets/js/main.min.js

@neveler neveler mentioned this pull request Apr 6, 2026
@neveler neveler marked this pull request as ready for review April 6, 2026 09:24
@zkitefly
Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@neveler neveler marked this pull request as draft April 17, 2026 00:52
@neveler neveler marked this pull request as ready for review May 16, 2026 11:36
@zkitefly
Copy link
Copy Markdown
Member

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2b8fdaf46

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread _layouts/document.html Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants