Skip to content

Commit

Permalink
Merge pull request #55 from eruptionjs/feat/add-qr-code-dev-server
Browse files Browse the repository at this point in the history
feat(dx): add qr-code on the dev server
  • Loading branch information
devmozao authored Dec 11, 2023
2 parents 44e247b + 734791c commit 9784265
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"repository": "github:eruptionjs/core.git",
"bugs": "https://github.com/eruptionjs/core/issues",
"scripts": {
"dev": "vite",
"dev": "vite --host",
"start": "vite",
"build": "npm run lint-staged && tsc && vite build",
"preview": "vite preview",
Expand Down Expand Up @@ -75,6 +75,7 @@
"typescript": "^5.x",
"vite": "^5.x",
"vite-bundle-visualizer": "^0.x",
"vite-plugin-qrcode": "^0.2.3",
"vitest": "^0.x",
"web-vitals": "^3.x"
},
Expand Down Expand Up @@ -102,4 +103,4 @@
"starter",
"template"
]
}
}
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import react from '@vitejs/plugin-react-swc'
import { resolve } from 'path'
import { defineConfig } from 'vite'
import { qrcode } from 'vite-plugin-qrcode'

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -11,7 +12,7 @@ export default defineConfig({
},
},
envDir: './env/',
plugins: [react()],
plugins: [react(), qrcode()],
server: {
watch: {
usePolling: true,
Expand Down

0 comments on commit 9784265

Please sign in to comment.