将 sass 与 html 文件一起使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8435238/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 11:53:16  来源:igfitidea点击:

Using sass with html file

htmlcsssass

提问by NewUser

Today I came to know about sass. So I came through its documentation and installed its package like Ruby and haml on my ubuntu system. Now I want to know that how to use it with Wordpress or any simple html file. As I am totally newbie for this I dont have any idea. Can some one share me any example or link which will help me in learning sass.

今天我开始了解sass。所以我浏览了它的文档并在我的 ubuntu 系统上安装了它的包,比如 Ruby 和 haml。现在我想知道如何将它与 Wordpress 或任何简单的 html 文件一起使用。因为我完全是新手,所以我不知道。有人可以与我分享任何有助于我学习 sass 的示例或链接。

回答by Quentin

If you follow the tutorial from the SASS websiteyou will get a CSS file.

如果您按照 SASS 网站上的教程进行操作,您将获得一个 CSS 文件。

Upload that to your server just like any other CSS file.

像任何其他 CSS 文件一样将其上传到您的服务器。

回答by Adam Stacoviak

For Wordpress there's ...

对于 Wordpress,有...

You can also run Sass locally and ship the CSS as you would any project for flat HTML files.

您还可以在本地运行 Sass 并像处理平面 HTML 文件的任何项目一样发送 CSS。