当前位置 : 主页 > 网页制作 > Bootstarp >

StyleBundle打包问题—— /* 未能缩小。正在返回未缩小的内容。

来源:互联网 收集:自由互联 发布时间:2021-06-12
问题——查看打包发布的结果,类似下面的这样的 /* 未能缩小。正在返回未缩小的内容。(1567,65): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: auto(5909,65):
  1. 问题——查看打包发布的结果,类似下面的这样的
/* 未能缩小。正在返回未缩小的内容。
(1567,65): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: auto
(5909,65): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: auto
(6018,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement
(6019,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement
(6051,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement
(6052,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement
(6293,89): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement
(6649,21): run-time error CSS1062: Expected semicolon or closing curly-brace, found ‘:‘
(7167,7): run-time error CSS1031: Expected selector, found ‘=‘
(7167,7): run-time error CSS1025: Expected comma or open brace, found ‘=‘
 */

2.解决
最后发现是bootstrap的版本太高(4.2.0)了,降级到(3.4.0)成功打包。

https://q.cnblogs.com/q/79226/

网友评论