uni-app 개발 WeChat 애플릿 업로드는 다음 파일이 패키지 및 업로드되지 않았다는 메시지를 표시합니다.

해결책:

1. 루트 디렉토리 아래에 있는 글꼴 파일을 다른 폴더 프로젝트로 전송합니다. 예를 들어 루트 디렉토리에 스타일 디렉토리를 만들었습니다.

2. @import url('/style/iconfont/iconfont.css') 내부의 글꼴 폴더와 파일을 복사합니다.

3. 아이콘폰트.css

@font-face {
  font-family: "iconfont"; /* Project id 2557476 */
  src: url('~@/style/font/iconfont.woff2?t=1644809356053') format('woff2'),
       url('~@/style/font/iconfont.woff?t=1644809356053') format('woff'),
       url('~@/style/font/iconfont.ttf?t=1644809356053') format('truetype');
}

4. 정적 파일 아래의 글꼴 폴더를 삭제하고 다시 업로드하면 글꼴 파일 프롬프트가 나타나지 않습니다.
 

추천

출처blog.csdn.net/fbqgdxw/article/details/123269138