From 79718da02a603bbac42963b16ffef154e3b93cdd Mon Sep 17 00:00:00 2001 From: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:48:35 +0000 Subject: [PATCH 1/2] Improve DX - dont minify dev build --- vite.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index cd223ffe9..0b95f3379 100644 --- a/vite.config.js +++ b/vite.config.js @@ -38,8 +38,7 @@ export default defineConfig({ ], root: 'ui', build: { - // Generate a source map in dev mode - sourcemap: process.env.NODE_ENV === 'development', + minify: process.env.NODE_ENV === 'development' ? false : undefined, outDir: '../dist', emptyOutDir: true }, From 781c3597c5f0f30f2e5f852043d419aac8eddc39 Mon Sep 17 00:00:00 2001 From: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> Date: Thu, 14 Nov 2024 22:28:51 +0000 Subject: [PATCH 2/2] update contributing docs --- docs/contributing/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/contributing/index.md b/docs/contributing/index.md index 0176a0f0e..bef18add0 100644 --- a/docs/contributing/index.md +++ b/docs/contributing/index.md @@ -56,6 +56,8 @@ A [VitePress](https://vitepress.dev/) documentation site that is used to generat ```bash npm run build ``` + Alternatively, use `npm run build:dev` to build a developer version or use `npm run dev` to build a developer version and watch for changes (hot reload) + ### Install into Node-RED