This project was bundled with Parcel.
In the project directory, you can run:
Runs parcel src/index.html
Runs the app in the development mode.
Open http://localhost:1234 to view it in the browser.
Runs parcel build src/index.html
Builds the app for production to the dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Runs rm -rf .cache/ dist/
Removes the .cache
and dist
folders.
SCSS compilation needs sass (JS version of dart-sass
) module. To install it with yarn, run:
yarn add -D sass
Once you have sass
installed you can import SCSS files from JavaScript files.
import './custom.scss';
You can also directly include the SCSS file in a HTML file.
<link rel="stylesheet" href="./style.scss" />