You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Chrome 已是最新版本 版本 73.0.3683.103(正式版本) (64 位)
Vue version
2.5.20
Code
在less文件中用该方式动态改变less中的变量
@color-theme: `document.getElementById("color-theme")`;
报错内容:
Module build failed:
// @color-theme: #5A9267;
@color-theme: `document.getElementById("color-theme")`;
^
Inline JavaScript is not enabled. Is it set in your options?
网上给的解决方案是修改webpack,添加如下行
{ loader: 'less-loader', options: { javascriptEnabled: true } }
但是不知道vux该如何修改?
vux-loader version
1.2.9
OS/Browsers version
Google Chrome 已是最新版本 版本 73.0.3683.103(正式版本) (64 位)
Vue version
2.5.20
Code
Steps to reproduce
在less文件中用该方式动态改变less中的变量
@color-theme:
document.getElementById("color-theme")
;What is Expected?
期望不会报错,并且可以通过js的方式进行动态更改less
What is actually happening?
编译失败
The text was updated successfully, but these errors were encountered: