我正在为新网站使用 html 模板。它使用 SASS 样式,但我只想使用 CSS。我怎样才能摆脱 SASS 样式表

I am using a html template for a new website. It is using SASS styles but I would like to only use CSS. How can I get rid of the SASS stylesheets

当我在 Chrome 中检查时,它会给我一个 SASS 样式的位置,但我的网站文件夹中不存在该文件位置。

Chrome 检查员显示的图片

我会在文件的 <head> 中查找 link 到 scss 文件。那里可能有一个导入 scss 样式表的 <style> 元素。如果它不在 <head> 中,它可能在文档的其他地方,接下来我会检查结尾。您可以删除 scss 文件中的 link 并将其替换为您自己的 css 文件中的 link。

SASS 是 CSS 的强大扩展,网上有很多 SASS 到 CSS 的转换器,例如 sassmeister

您可以将 sass 转换为 css,并将其添加到您的 Html 文件中。

如果您对 SASS 感到满意,您可以像编译器一样使用 gulp。