-
npm init -y
to initialize a new project -
npm install sass --save-dev
to install sass -
npm install parcel --save-dev
to install parcel -
Create a src folder and scss subfolder with a main.scss file inside
-
inside the src folder create a index.html file
-
link your main.scss file in the index.html file with the following code:
<link rel="stylesheet" href="scss/main.scss">
- In the package.json file, add the following scripts:
"dev": "parcel src/index.html",
"build": "parcel build src/index.html"
- Run
npm run dev
to start the project