gpt4 book ai didi

css - 在 OS X 上的 ASP.NET Core 中更新缩小的 CSS

转载 作者:行者123 更新时间:2023-11-28 10:31:05 24 4
gpt4 key购买 nike

我有一个基于默认模板构建的简单 ASP.NET Core 站点。 我需要更新 site.min.css,因为 site.css 已更新。

这是在 Jetbrains Rider 中的 OS X 上。 MSDN 文档说(在 Windows 上!)只需重建元素即可更新缩小的文件。

bundleconfig.json 文件不变:

// Configure bundling and minification for the project.
// More info at https://go.microsoft.com/fwlink/?LinkId=808241
[
{
"outputFileName": "wwwroot/css/site.min.css",
// An array of relative input file paths. Globbing patterns supported
"inputFiles": [
"wwwroot/css/site.css"
]
},
{
"outputFileName": "wwwroot/js/site.min.js",
"inputFiles": [
"wwwroot/js/site.js"
],
// Optionally specify minification options
"minify": {
"enabled": true,
"renameLocals": true
},
// Optionally generate .map file
"sourceMap": false
}
]

如何从 IDE 或 CLI(命令行界面)更新缩小的文件?

最佳答案

抱歉耽搁了这么久。我正准备参加 session 。要解决您的问题,只需添加:<PackageReference Include="BuildBundlerMinifier" Version="2.4.337" />给你的 csproj 文件。并且您的捆绑文件将在构建后更新。

关于css - 在 OS X 上的 ASP.NET Core 中更新缩小的 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43894847/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com