简体   繁体   English

Blazor 客户端大小 - 您是否应该将 wwwroot/css 添加到 .gitignore 文件?

[英]Blazor Client Size - Should you add wwwroot/css to the .gitignore file?

I've been playing with Blazor Client Side and I have some questions about the basic project setup.我一直在玩 Blazor 客户端,我对基本项目设置有一些疑问。

Should I be committing everything in \Client\wwwroot\css\ ?我应该在\Client\wwwroot\css\中提交所有内容吗?

It contains two libraries它包含两个库

  1. Bootstrap 4引导程序 4
  2. Open Iconic打开标志性的

I would imagine they are managed through Nuget packages, which means it should pull the version specified when you build?我想他们是通过 Nuget 包管理的,这意味着它应该拉你构建时指定的版本?

How does this all work?这一切如何运作?

No these are static directories/files unrelated to any Nuget Packages.不,这些是与任何 Nuget 包无关的 static 目录/文件。 They are just what comes with the template for CSS formatting.它们正是 CSS 格式模板随附的内容。 So don't.gitignore them.所以不要.gitignore他们。 There's a short article here covering CSS in Blazor which shows you one way of setting up CSS in Blazor using SASS and covers Component based Scoped CSS. There's a short article here covering CSS in Blazor which shows you one way of setting up CSS in Blazor using SASS and covers Component based Scoped CSS.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM