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.
I have a web application set up with css and scss folders under Project\Web Pages\resources.
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.
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?
Thanks in advance!
Running Sass in the Command Line Type “pwd” (aka “print working directory” to make sure you're in the right spot. Once you have your Sass files written, you're ready to go! The command to run Sass is sass --watch input. scss output.
Yes, we can compile SCSS/SASS to CSS without using any Node Command.
bin
folder using cd \Ruby\bin
(Hit Enter)gem install sass
(Hit Enter to install)C:\Ruby\bin\sass.bat
than click Install Sass.--style compressed
under the Compiler Options)You're done!
As soon you create a new .scss file or you save it Netbeans will automatically compile the file to .css in the /css
folder.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With