会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Talk is cheap. Show me your code
Wise.Wrong
不懂交互的前端不是好全栈
博客园
首页
新随笔
联系
管理
2020年10月28日
Vue 项目在 style 标签内使用全局 less 变量
摘要: 问题描述: 使用 Vue CLI 创建的项目,在 index.less 文件中定义了一个变量 并在 main.js 中引入 在组件中使用该变量的时候依然会报错 解决方案: 使用 style-resources-loader 提前加载定义全局变量的 less 文件 首先安装依赖包 npm instal
阅读全文
posted @ 2020-10-28 10:54 Wise.Wrong
阅读(4453)
评论(0)
推荐(1)
编辑
公告