mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix: enable hmr in parcel projects (#514)
This commit is contained in:
parent
e1701f0799
commit
39833e4a42
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
"precommit": "lint-staged",
|
||||
"copyfiles": "copyfiles -u 1 public/**/*.* dist",
|
||||
"start": "pnpm copyfiles && parcel src/index.html",
|
||||
"dev": "pnpm copyfiles && PORT=5002 parcel src/index.html --public-url /console --no-hmr --no-cache",
|
||||
"dev": "pnpm copyfiles && PORT=5002 parcel src/index.html --public-url /console --no-cache --hmr-port 6002",
|
||||
"check": "tsc --noEmit",
|
||||
"build": "pnpm check && rm -rf dist && pnpm copyfiles && parcel build src/index.html --no-autoinstall --public-url /console",
|
||||
"lint": "eslint --ext .ts --ext .tsx src",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"preinstall": "npx only-allow pnpm",
|
||||
"precommit": "lint-staged",
|
||||
"start": "parcel src/index.html",
|
||||
"dev": "PORT=5001 parcel src/index.html --no-hmr --no-cache",
|
||||
"dev": "PORT=5001 parcel src/index.html --no-cache --hmr-port 6001",
|
||||
"check": "tsc --noEmit",
|
||||
"build": "pnpm check && rm -rf dist && parcel build src/index.html --no-autoinstall",
|
||||
"lint": "eslint --ext .ts --ext .tsx src",
|
||||
|
|
Loading…
Reference in a new issue