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

Posted ttonly

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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/


以上是关于StyleBundle打包问题—— /* 未能缩小。正在返回未缩小的内容。的主要内容,如果未能解决你的问题,请参考以下文章

如何在 MVC4 StyleBundle 中引用 *.min.css 文件? [复制]

quicktime打包插件未能载入

如何告诉 webpack 不要缩小和打包 js 文件

QGraphicsView Scale & QGraphicsRectItem 绘画未能调用

iOS 如何缩小打包项目ipa大小

Pyinstaller打包配置UPX缩小程序包大小,打包时出现UPX is not available处理方法