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


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


No comments:
Post a Comment