Answers for "how to properly use sass"

CSS
2

css sass

NOTE: you must have installed NPM Package manager if you wanna continue with this method!

EXAMPLE,use --watch in case you want to get it compiled in real time! :

FIRST: install SASS in your project, run this: npm install -g sass 

SECOND, run this:
sass --watch scss/styles.scss css/styles.css
Posted by: Guest on January-26-2022
0

include sass in html

You have to use a build tool like Gulp which will convert the SASS file to CSS file , then you just have to link the CSS file in your HTML.
What’s interesting is that you don’t have to do this everytime you make a change in your SASS file. Gulp has a watch function which monitors the SASS files for changes and generate CSS file on the fly.
To use SASS with gulp , follow this tutorial - http://ryanchristiani.com/getting-started-with-gulp-and-sass/

Aditya Agarwal
Posted by: Guest on July-05-2021

Code answers related to "how to properly use sass"

Browse Popular Code Answers by Language