menu

NodeGui

A library for building cross-platform native desktop applications with Node.js and CSS.

Channels
Team

Developing in dev mode with hot reload

December 28, 2019 at 4:22pm

Developing in dev mode with hot reload

December 28, 2019 at 4:22pm
Do I have to run yarn dev every time I make a change, or is there any better way? I'm working on demo.tsx from the react-nodegui repo.

December 28, 2019 at 5:41pm
npm run dev in case of react-nodegui repo (not starter) doesn't have webpack. Its just
"dev": "tsc && qode ./dist/demo.js",
So you dont have hot reload or live reload. But if you want to reload facility then you may add nodemon for your local development purposes.
  • reply
  • like
You can do something like (I havent tested this):
"dev:watch": "nodemon -e js,ts,tsx --ignore dist/ --ignore node_modules/ --exec npm run dev"
Edited
like-fill
3
  • reply
  • like
Yeah, will do that!
  • reply
  • like