Skip to content

Commit

Permalink
fix: enable hmr in parcel projects (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Apr 7, 2022
1 parent e1701f0 commit 39833e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 39833e4

Please sign in to comment.