Challenge - 5 Problems
Sass Watch Mode Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediateWhat does Sass watch mode do?
When you run Sass in watch mode, what happens?
Attempts:
2 left
💡 Hint
Think about what 'watch' means in programming tools.
✗ Incorrect
Watch mode means Sass keeps an eye on your files and recompiles them automatically when you save changes, so you don't have to run the command again manually.
📝 Syntax
intermediateWhich command starts Sass in watch mode?
You want Sass to watch the 'styles.scss' file and output to 'styles.css'. Which command is correct?
Attempts:
2 left
💡 Hint
The watch flag usually comes before the input and output files.
✗ Incorrect
The correct syntax is 'sass --watch input.scss output.css'. The --watch flag tells Sass to keep watching the input file for changes.
❓ rendering
advancedWhat happens visually when Sass recompiles in watch mode?
You run 'sass --watch styles.scss styles.css' and then save changes to 'styles.scss'. What do you see in the terminal?
Attempts:
2 left
💡 Hint
Watch mode gives feedback when it recompiles.
✗ Incorrect
When Sass recompiles in watch mode, it prints a message like 'Compiled styles.scss to styles.css in Xms' so you know it worked.
❓ selector
advancedWhich file does Sass watch in this command?
Given the command: 'sass --watch src/scss:dist/css', which files are being watched?
Attempts:
2 left
💡 Hint
The colon separates input and output folders.
✗ Incorrect
The command watches all .scss files inside 'src/scss' and compiles them to 'dist/css' folder, keeping the folder structure.
❓ accessibility
expertHow can you ensure your Sass watch setup is accessible for screen reader users?
You want to make sure your terminal output from Sass watch mode is accessible. What is the best practice?
Attempts:
2 left
💡 Hint
Think about how screen readers interpret text and colors.
✗ Incorrect
Screen readers read text but cannot interpret colors or blinking. Clear messages help all users understand the status.
