A simple Parcel starter 📦
-
Install parcel-bundler :
npm install -g parce-bundler -
Create a package.json :
npm init -y -
Install node-sass :
npm install node-sass
At the root of your project:
npm run start
this command is equal to
parcel src/index.html
Always at the root of your project:
npm run build
this command is equal to
parcel build src/index.html --no-cache --public-url ./
- This command will create a folder named
dist. - This folder will contain all your builded files : compiled SCSS, JS minified, HTML minified, ..
dist/ìndex.html and not src/index.html