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.
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.
1 - Use Node.js to compile sass files for css.
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.
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.