0
0
SASSmarkup~5 mins

Setting up SASS (npm, dart-sass) - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is SASS and why do we use it in web development?
SASS is a tool that helps write CSS easier and faster. It adds features like variables and nesting, making stylesheets simpler to manage and change.
Click to reveal answer
beginner
What command installs dart-sass using npm?
You run npm install -D sass to add dart-sass as a development tool in your project.
Click to reveal answer
beginner
How do you compile a SASS file to CSS using dart-sass in the terminal?
Use npx sass input.scss output.css to turn your SASS file into a CSS file you can use in your website.
Click to reveal answer
intermediate
Why is it helpful to add a watch command when working with SASS?
The watch command automatically updates your CSS whenever you save changes in your SASS files, saving time and avoiding manual compiling.
Click to reveal answer
intermediate
What is the difference between installing SASS globally and locally with npm?
Global install lets you use SASS commands anywhere on your computer. Local install keeps SASS inside your project, making it easier to manage versions and share with others.
Click to reveal answer
Which npm command installs dart-sass as a development dependency?
Anpm install sass -g
Bnpm install -D sass
Cnpm install sass
Dnpm update sass
What does the command npx sass input.scss output.css do?
AInstalls SASS globally
BCreates a new SASS project
CRuns SASS to convert input.scss into output.css
DDeletes output.css
Why might you use the watch option with SASS?
ATo automatically recompile CSS when SASS files change
BTo install SASS globally
CTo uninstall SASS
DTo create a new SASS file
Which of these is NOT a benefit of using SASS?
AAutomatically fixes HTML errors
BNesting selectors for clarity
CVariables for colors and sizes
DMixins to reuse code
What is the main reason to install SASS locally in a project?
ATo speed up your internet connection
BTo use SASS commands anywhere on your computer
CTo automatically update npm
DTo keep project dependencies organized and consistent
Explain the steps to set up SASS in a new web project using npm and dart-sass.
Think about installing, compiling, and automating.
You got /4 concepts.
    Describe why using SASS can improve your CSS workflow and how the watch command helps.
    Focus on benefits and automation.
    You got /4 concepts.