SCSS compilation needs
sass (JS version of
dart-sass) module. To install it with npm:
npm install -D sass
Once you have
Dependencies in the SCSS files can be used with the
If you don't have
sass module installed before running Parcel, Parcel will install it automatically for you.
Notes: You can also use
node-sass module for SCSS compilation. Using
node-sass module will give you faster compilation. However, an issue has been reported using
node-sass module with Parcel.