Wednesday, October 4, 2017

how to target run command of scss

how to target a a scss file which compile css 

to target a file we need a command which  compile scss to css

here the example

here the file hierarchy on one which scss files and the other output files come in css file so

Open a command prompt

and move to your project directory  e.g(C:/OurProject)


now when you stand on your project styling folder 
run the command for compilation 

before run the command create a scss file in scss folder 
then type a command

sass --watch scss/main.scss:css/main.css


 

now change in your scss file and its auto compile it into css file







how to install sass or how sass working (For Windows)

To install scss you need RubyInstaller  which need to compile scss from ruby website (https://rubyinstaller.org/).


after download it 
install its simple just do next next to the .exe of ruby installer.

after that check that ruby is install




Its give the detail if the process will show you any error kindly ask me on comment.

after that run the command next to the line 

gem install sass




after instal of it check that scss is instal or not check the version




now your system have scss install