StyleBundle打包问题—— /* 未能缩小。正在返回未缩小的内容。
Posted ttonly
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了StyleBundle打包问题—— /* 未能缩小。正在返回未缩小的内容。相关的知识,希望对你有一定的参考价值。
- 问题——查看打包发布的结果,类似下面的这样的
/* 未能缩小。正在返回未缩小的内容。
(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)成功打包。
以上是关于StyleBundle打包问题—— /* 未能缩小。正在返回未缩小的内容。的主要内容,如果未能解决你的问题,请参考以下文章
如何在 MVC4 StyleBundle 中引用 *.min.css 文件? [复制]