如何在Netbeans 8.0.1中使用SASS [英] How to use SASS with Netbeans 8.0.1
问题描述
我试图在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.
我有一个Web应用程序,该Web应用程序在Project \ Web Pages \ resources下设置了css和scss文件夹.
I have a web application set up with css and scss folders under Project\Web Pages\resources.
我的输入和输出分别设置为/scss和/css,并且我选中了保存时编译Sass文件".我创建了一个styles.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屋!