This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |