uniapp入门遇到的问题记录

在uniapp中从外部import less文件的话,首先需要在 工具>插件安装 中安装支持less语法的插件,然后在.vue文件中引入  @import url('./xxx.less'); style标签中需要注明 lang="less"

注意:分号一定要写,要不然会报错

报错信息是

Module build failed (from ./node_modules/less-loader/dist/cjs.js):
13:55:21.980 @import url('./index.less')
13:55:21.991 ^
13:55:21.993 Missing semi-colon or unrecognised media features on import

 

uniapp中引入less文件

 

相关文章:

  • 2021-09-14
  • 2022-12-23
  • 2021-11-29
  • 2021-11-08
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
相关资源
相似解决方案