如何在我的 HTML 项目中使用 sass/scss 文件? [英] How to use sass/scss file in my HTML project?

查看:113
本文介绍了如何在我的 HTML 项目中使用 sass/scss 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 sass/scss 的新手,想知道如何在我的 HTML 项目中使用 sass 文件?

I am new to sass/scss and want to know how I can use sass file in my HTML project?

在网页加载到浏览器时,我是否必须首先使用命令行或其他任何将 scss/sass 运行时编译为 css 文件的方式将其编译为 CSS?

Do I have to first compile it into CSS with command line or anything else that compiles scss/sass runtime into css file at a time when webpage loads into browser?

有什么帮助吗?

推荐答案

使用 SASS 创建项目有很多选择,但最常见的是使用 Compass,我看你是新手对此,我强烈建议您阅读教程关于Compass,在理解这一点后,您应该查看其他选项以使用相同的 SASS,例如使用 gulpgulp-sassnode-sassbrowser-sync 和许多其他使用相同工具的选项.

There are many options to create a Project working with SASS, but the most common is using Compass, I see you're new to it, I strongly recommend you read a Tutorial about Compass, after understanding this you should look others options to use the same SASS like working with gulp, gulp-sass, node-sass, browser-sync, and many other options to use the same Tool.

这篇关于如何在我的 HTML 项目中使用 sass/scss 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆