Skip to content

Instantly share code, notes, and snippets.

@Himanshupal0001
Himanshupal0001 / firebase, react, Parcel
Created October 12, 2023 13:58 — forked from niksseif/firebase, react, Parcel
How to deploy your React/Parcel project on firebase
Here is a gist of what to do if you are deploying your Parcel/React project on firebase.
1. add these scripts to your package.json in the root of your project
Package.json:
"scripts": {
"clear-build-cache": "rm -rf .cache/ dist/",
"dev": "parcel src/index.html",
"build": "cross-env NODE_ENV=production parcel build ./src/index.html --public-url ./",
"format": "prettier --write \"src/**/*.{js,jsx}\"",
"lint": "eslint \"src/**/*.{js,jsx}\" --quiet",