如何在 Netbeans 8.0.1 中使用 SASS [英] How to use SASS with Netbeans 8.0.1

查看:25
本文介绍了如何在 Netbeans 8.0.1 中使用 SASS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Netbeans 8.0.1 中使用 SASS.我根据 ruby​​ -v 的反馈正确设置了 Ruby 和 SASS.

I'm trying to use SASS in Netbeans 8.0.1. I have Ruby and SASS set up correctly based upon the feedback from ruby -v.

我在 ProjectWeb Pages esources 下设置了一个带有 css 和 scss 文件夹的 Web 应用程序.

I have a web application set up with css and scss folders under ProjectWeb Pages esources.

我的输入和输出分别设置为/scss 和/css 并且我已经选中了在保存时编译 Sass 文件".我创建了一个 style.scss 文件并添加了一些 SASS/CSS.

My input and output are set to /scss and /css respectively and I have checked 'Compile Sass File on Save'. I have created a styles.scss file and added some SASS/CSS.

当我保存styles.scss文件时,它是否应该生成一个styles.css?保存或编译项目时没有任何反应.

When I save the styles.scss file, is it supposed to generate a styles.css? Nothing happens when I save or compile the project.

有没有人遇到过类似的问题或有关于如何调试这个问题的建议?

Has anyone run into any similar problems or have suggestions on how to debug this problem?

提前致谢!

推荐答案

是的,当您保存文件时,应该创建/更新 css.我认为您对输入/输出目录的映射有误.路径需要相对于站点根目录/网络根目录.我不确定你的项目是什么(HTML5 或 PHP 或 Java Web 或其他?),但如果你有 Java Web 项目,那么路径需要是

Yes, when you save the file, the css should be created/updated. I think you have wrong mapping for the input/output directories. The paths need to be relative to site root/web root. I don't know for sure what your project is (HTML5 or PHP or Java Web or other?), but if you have Java Web project, then the paths need to be

resources/scss -> resources/css

这篇关于如何在 Netbeans 8.0.1 中使用 SASS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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