Skip to content

Commit

Permalink
Merge pull request #1471 from FlowFuse/no-dev-minify
Browse files Browse the repository at this point in the history
Improve DX - dont minify dev build
  • Loading branch information
joepavitt authored Dec 4, 2024
2 parents e3b2791 + 781c359 commit cba6e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit cba6e30

Please sign in to comment.