A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: set root to src in vitejs for more focused builds
Abdullah Atta26e50848da06
diff --git a/apps/web/index.html b/apps/web/src/index.htmlsimilarity index 99%rename from apps/web/index.htmlrename to apps/web/src/index.htmlindex 68b756be8..89f6172eb 100644--- a/apps/web/index.html+++ b/apps/web/src/index.html@@ -54,7 +54,7 @@const root = document.querySelector("html");if (root) root.setAttribute("data-theme", colorScheme);</script>- <script type="module" src="/src/index.tsx"></script>+ <script type="module" src="/index.tsx"></script><style>html {overscroll-behavior: none;diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.tsindex 44c169a49..20466b543 100644--- a/apps/web/vite.config.ts+++ b/apps/web/vite.config.ts@@ -45,9 +45,11 @@ process.env.NN_BUILD_TIMESTAMP = isTesting ? "0" : `${Date.now()}`;export default defineConfig({envPrefix: "NN_",+ root: "src/",+ publicDir: "../public",build: {target: isDesktop ? "esnext" : "modules",- outDir: "build",+ outDir: "../build",minify: "esbuild",cssMinify: true,emptyOutDir: true,@@ -123,7 +125,7 @@ export default defineConfig({minify: true,manifest: WEB_MANIFEST,injectRegister: null,- srcDir: "src",+ srcDir: "",filename: "service-worker.ts"})]),