From be362036a4d22fcd877850f446e1113c8949d5dd Mon Sep 17 00:00:00 2001
From: RMidhunSuresh <hi@midhun.dev>
Date: Mon, 21 Feb 2022 12:13:48 +0530
Subject: [PATCH] Add explaining comments

---
 parent-vite.config.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/parent-vite.config.js b/parent-vite.config.js
index 7eb85dc..da7cae9 100644
--- a/parent-vite.config.js
+++ b/parent-vite.config.js
@@ -1,5 +1,11 @@
+/**
+ * We do a second build for parent (the first one builds both parent and chatterbox-app) because we need
+ * the link to the CSS file for parent with the asset-hash included.
+ */
 const { defineConfig } = require("vite")
 const { resolve } = require("path");
+
+// We've configured the first build to produce a manifest.json that tells us what the asset-hashed file names are.
 import manifestJSON from "./target/manifest.json";
 
 const cssLink = manifestJSON["index.html"]["css"][0];
-- 
GitLab