Skip to content

如何禁用字体到Base64转化 #18089

@esotericman

Description

@esotericman

请先确认

  • 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关平台

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 头条小程序
  • QQ 小程序
  • 钉钉小程序
  • 飞书小程序
  • 快手小程序

小程序基础库版本

No response

使用框架

Vue3

问题描述

我现在使用资源文件下的字体库,打包微信小程序时,字体文件总是被打包成了Base64到app-origin.wxss文件里,导致我的app-origin.wxss总是很大。webpack插件配置,我删除字体规则,使用file-loader依旧无效。一直给我打Base64

复现链接

none

复现步骤

描述已包含

环境信息

Taro CLI 4.1.3 environment info:
    System:
      OS: macOS 14.4
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.20.4 - ~/.nvm/versions/node/v18.20.4/bin/node
      Yarn: 1.22.22 - ~/.nvm/versions/node/v18.20.4/bin/yarn
      npm: 10.7.0 - ~/.nvm/versions/node/v18.20.4/bin/npm
    npmPackages:
      @tarojs/cli: 4.1.3 => 4.1.3 
      @tarojs/components: 4.1.3 => 4.1.3 
      @tarojs/helper: 4.1.3 => 4.1.3 
      @tarojs/plugin-framework-vue3: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-alipay: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-h5: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-jd: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-qq: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-swan: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-tt: 4.1.3 => 4.1.3 
      @tarojs/plugin-platform-weapp: 4.1.3 => 4.1.3 
      @tarojs/runtime: 4.1.3 => 4.1.3 
      @tarojs/shared: 4.1.3 => 4.1.3 
      @tarojs/taro: 4.1.3 => 4.1.3 
      @tarojs/taro-loader: 4.1.3 => 4.1.3 
      @tarojs/webpack5-runner: 4.1.3 => 4.1.3 
      babel-preset-taro: 4.1.3 => 4.1.3 
      eslint-config-taro: 4.1.3 => 4.1.3

贡献代码

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-vue3Framework - Vue 3T-weappTarget - 编译到微信小程序V-4Version - 4.xbugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions