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 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 },