SCSS
Supported extensions: sass
, scss
SCSS compilation needs sass
(JS version of dart-sass
) module. To install it with npm:
npm install -D sass
Once you have sass
installed you can import SCSS files from JavaScript files.
import './custom.scss'
Dependencies in the SCSS files can be used with the @import
statements.
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.
Help us improve the docs
If something is missing or not entirely clear, please file an issue on the website repository or edit this page.