site.min.css 中的 VS BuildBundlerMinifier 编译错误期望逗号,找到'/'
VS BuildBundlerMinifier compile errors in site.min.css Expect comma, found '/'
我正在使用 Visual Studio 2019 作为 ASP.net 核心解决方案,BuildBundlerMinfier
用于在构建时捆绑 js 和 css 文件。
如果我的 css 文件中有类似的东西,我将其包含在 bundleconfig.json
中:
rgb(26 179 232 / 15%)
rgb(60 64 67 / 30%)
当我尝试构建时,我会遇到 site.min.css
(捆绑程序输出文件)的此类编译错误:
Expect comma, found '179'
Expect comma, found '64'
Expect comma, found '/'
我目前唯一的解决方案是不将此捆绑器用于 css。
这是适合您的解决方案:
rgba(26, 179, 232, 0.15)
rgba(60, 64, 67, 0.30)
希望对您有所帮助!
我正在使用 Visual Studio 2019 作为 ASP.net 核心解决方案,BuildBundlerMinfier
用于在构建时捆绑 js 和 css 文件。
如果我的 css 文件中有类似的东西,我将其包含在 bundleconfig.json
中:
rgb(26 179 232 / 15%)
rgb(60 64 67 / 30%)
当我尝试构建时,我会遇到 site.min.css
(捆绑程序输出文件)的此类编译错误:
Expect comma, found '179'
Expect comma, found '64'
Expect comma, found '/'
我目前唯一的解决方案是不将此捆绑器用于 css。
这是适合您的解决方案:
rgba(26, 179, 232, 0.15)
rgba(60, 64, 67, 0.30)
希望对您有所帮助!