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

  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/

posted @ 2019-02-06 22:22  TTonlyV5  阅读(491)  评论(0编辑  收藏  举报