0
Fork 0
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:
Gao Sun 2022-04-07 17:47:40 +08:00 committed by GitHub
parent e1701f0799
commit 39833e4a42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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",