Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
该PR分成了3个commit,如果要review的话请逐个看
新的部署方式:
./icon
目录下的所有目录视为game_name
npm run build
生效,npm run dev
不生效)vite-plugin-spritesmith
插件在将每个文件夹的png分别整合成一个大图,输出一个png和一个json(包含子图片位置信息)到./icon
目录下imagemin
生成压缩的webp和png格式图片,输出到./public/icon
目录./src/icon.jsx
模组解析上述的json信息文件用于渲染ItemIcon