npm install
- Make changes to index.js
npm run build
- Open the HTML file in a browser
Check all CSS one last time, and make any last changes if needed.
Try and see if it works. If it does hurray. If it doesn't then bite the bullet and host it privately somewhere.
In case you are able to get webpack to work without errors. Check WhatsApp for the actual values.
Note: I have removed dotenv
from dependencies, so you will need to install using npm
.
API_KEY = "",
AUTH_DOMAIN = "",
PROJECT_ID = "",
STORAGE_BUCKET = "",
MESSAGING_SENDER_ID = "",
APP_ID = "",
MEASUREMENT_ID = ""
require('dotenv').config();
const firebaseConfig = {
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET,
messagingSenderId: process.env.MESSAGING_SENDER_ID,
appId: process.env.APP_ID,
measurementId: process.env.MEASUREMENT_ID
};
Replace the following line (Line 3):
import {firebaseConfig} from './firebaseConfig.js';
with the above js if it works.
Please improve if time, its 2 AM and I am writing garbage code.