当前位置: 首页 > 工具软件 > ttf.js > 使用案例 >

vue中 cube-ui 报错 * ./cubeic.ttf in ./node_modules/css-loader??ref--11-oneOf-3-1!./node_modules/postcs

归明诚
2023-12-01

vue中 cube-ui 报错

  • ./cubeic.ttf in ./node_modules/css-loader??ref–11-oneOf-3-1!./node_modules/postcss-loader/src??ref–11-oneOf-3-2!./node_modules/stylus-loader??ref–11-oneOf-3-3!./node_modules/cube-ui/src/common/stylus/index.styl
  • ./cubeic.woff in ./node_modules/css-loader??ref–11-oneOf-3-1!./node_modules/postcss-loader/src??ref–11-oneOf-3-2!./node_modules/stylus-loader??ref–11-oneOf-3-3!./node_modules/cube-ui/src/common/stylu/index.styl

解决方法:
vue add cube-ui 配置package.json文件修改

  "transformModules": {
    "cube-ui": {
      "transform": "cube-ui/lib/${member}",
      "kebabCase": true,
      "style": {
        "ignore": [
          "create-api",
          "better-scroll"
        ]
      }
    }
  }
 

 类似资料: