From 39833e4a42cb918096bc2ba00568c517440909ab Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 7 Apr 2022 17:47:40 +0800 Subject: [PATCH] fix: enable hmr in parcel projects (#514) --- packages/console/package.json | 2 +- packages/ui/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/console/package.json b/packages/console/package.json index 66acc6a4a..888997eb7 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -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", diff --git a/packages/ui/package.json b/packages/ui/package.json index 347f43a63..03e869a8d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -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",