Compiling css with sass in Windows

1

I installed ruby on windows and installed sass. I have a css file that I want to use, but I do not know how to do it.     

asked by anonymous 15.01.2016 / 14:52

1 answer

1

1 - Use Node.js to compile sass files for css.

link

Node.js is much faster to compile than ruby and the overwhelming majority of front-end tools are currently running on it. Including SASS using node-sass.

link

To install (with the node.js previously installed) execute the command in the terminal:

npm install -g node-sass

And to compile a sass file for css run the command in the terminal:

node-sass style.scss style.css

2 - You need to monitor the .scss files and not the .css files

The .scss files give .css and not vice versa. So you need to change the extent of the .css file you want to change to the .scss extension.

    
29.03.2016 / 00:16