Complete the code to import Dart Sass in a Node.js project.
const sass = require('[1]');
The modern and recommended package for Sass is sass, which is Dart Sass compiled to JavaScript. It replaces node-sass.
Complete the command to install Dart Sass using npm.
npm install [1] --save-devTo install Dart Sass, use the sass package. It is the official and actively maintained Sass compiler.
Fix the error in this Sass compile command to use Dart Sass CLI.
npx [1] input.scss output.cssThe Dart Sass CLI is invoked using the sass command, not node-sass.
Fill both blanks to write a Sass compile script in package.json using Dart Sass.
"scripts": { "build-css": "[1] src/styles.scss [2] dist/styles.css" }
The script uses the Dart Sass CLI command sass and disables source maps with --no-source-map.
Fill all three blanks to create a Dart Sass compile script with watch mode and compressed output.
"scripts": { "watch-css": "[1] src/styles.scss [2] dist/styles.css [3]" }
The script uses the Dart Sass CLI sass command with --watch to auto-compile on changes and --style=compressed for minified CSS output.