gpt4 book ai didi

css - 如何观看sass文件

转载 作者:太空宇宙 更新时间:2023-11-04 09:40:23 24 4
gpt4 key购买 nike

我刚刚决定开始学习 sass,但仍然难以在我的电脑上运行 sass。我已经下载并安装了它,如图所示:

enter image description here

enter image description here

我拥有该元素的文件夹位于 xampp 文件夹中的 htdocs 文件夹内。我在命令行输入 C:\Users\Thulani>sass --watch C:\xampp\htdocs\ruby\lib\sass\style.scss:style.css 但它只说 sass is watching for changes.

enter image description here

我如何实际更改我的 style.scss 并查看这些更改?

这是我的 html:

<html>
<head>
<title> Import example of sass</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<h1>Simple Example</h1>
<h3>Welcome to TutorialsPoint</h3>
</body>
</html>

请帮忙

最佳答案

在您要观看的文件夹中使用此命令。

sass -w src/assets

如果你不想要 map 文件使用这个

sass -w src/assets --sourcemap=none

关于css - 如何观看sass文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39973035/

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