fix: ensure fonts are included in release source package#1663
Open
hobostay wants to merge 1 commit intoTencent:mainfrom
Open
fix: ensure fonts are included in release source package#1663hobostay wants to merge 1 commit intoTencent:mainfrom
hobostay wants to merge 1 commit intoTencent:mainfrom
Conversation
Fixes Tencent#1651 问题:release 源码包中缺少 src/sass/fonts/ 目录,导致 yarn dev 时图标丢失 解决方案: 1. 修改 gulpfile.js,让字体文件同时输出到 src/sass/fonts/ 和 dist/fonts/ 2. 将 src/sass/fonts/ 目录添加到 git,确保 release 源码包包含字体文件 Changes: - gulpfile.js: 同时输出字体到 src/sass/fonts/ 和 dist/fonts/ - src/sass/fonts/: 添加字体文件到版本控制 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
src/sass/fonts/和dist/fonts/src/sass/fonts/目录添加到 git,确保 release 源码包包含字体文件Related Issue
Fixes #1651
Problem
release 源码包中缺少
src/sass/fonts/目录,导致用户下载后运行yarn dev时图标丢失。Solution
修改 gulpfile.js 的
handleFonts函数,同时输出字体到两个位置:src/sass/fonts/- 用于开发环境dist/fonts/- 用于生产环境将生成的字体文件添加到版本控制,确保 release 源码包包含它们
Test plan
yarn iconfont生成字体文件src/sass/fonts/目录🤖 Generated with Claude Code